Skip to content

Commit

Permalink
Merge pull request #974 from internetee/registry-973
Browse files Browse the repository at this point in the history
Fix redirection after sign-in
  • Loading branch information
vohmar authored Sep 12, 2018
2 parents 2b273d2 + 0fef419 commit e24f8bd
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 e24f8bd

Please sign in to comment.