Skip to content

Commit

Permalink
Fix redirection after sign-in
Browse files Browse the repository at this point in the history
Closes #973
  • Loading branch information
Artur Beljajev committed Sep 12, 2018
1 parent 2b273d2 commit 0fef419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/registrar/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def mid_status
sign_in(:registrar_user, @user)
flash[:notice] = t(:welcome)
flash.keep(:notice)
render js: "window.location = '#{registrar_root_url}'"
render js: "window.location = '#{after_sign_in_path_for(@user)}'"
when 'NOT_VALID'
render json: { message: t(:user_signature_is_invalid) }, status: :bad_request
when 'EXPIRED_TRANSACTION'
Expand Down

0 comments on commit 0fef419

Please sign in to comment.