app/controllers/concerns/mautic/connections_controller_concern.rb in mautic-2.3.8 vs app/controllers/concerns/mautic/connections_controller_concern.rb in mautic-2.3.9

- old
+ new

@@ -83,15 +83,15 @@ end # ==--==--==--==-- def authorize - redirect_to @mautic_connection.authorize + redirect_to @mautic_connection.authorize(self) end def oauth2 begin - response = @mautic_connection.get_code(params.require(:code)) + response = @mautic_connection.get_code(params.require(:code), self) @mautic_connection.update(token: response.token, refresh_token: response.refresh_token) return render plain: t('mautic.text_mautic_authorize_successfully') rescue OAuth2::Error => e flash[:error] = e.message end \ No newline at end of file