mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 21:54:48 +02:00
parent
2b273d26fa
commit
0fef419799
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ class Registrar
|
||||||
sign_in(:registrar_user, @user)
|
sign_in(:registrar_user, @user)
|
||||||
flash[:notice] = t(:welcome)
|
flash[:notice] = t(:welcome)
|
||||||
flash.keep(:notice)
|
flash.keep(:notice)
|
||||||
render js: "window.location = '#{registrar_root_url}'"
|
render js: "window.location = '#{after_sign_in_path_for(@user)}'"
|
||||||
when 'NOT_VALID'
|
when 'NOT_VALID'
|
||||||
render json: { message: t(:user_signature_is_invalid) }, status: :bad_request
|
render json: { message: t(:user_signature_is_invalid) }, status: :bad_request
|
||||||
when 'EXPIRED_TRANSACTION'
|
when 'EXPIRED_TRANSACTION'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue