mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 21:54:48 +02:00
Merge pull request #974 from internetee/registry-973
Fix redirection after sign-in
This commit is contained in:
commit
e24f8bda67
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ class Registrar
|
|||
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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue