Redirect to messages after sign in in registrar

This commit is contained in:
Martin Lensment 2015-04-06 13:10:40 +03:00
parent b0fa5f18e2
commit 616bc95f48
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ class Registrar::SessionsController < SessionsController
sign_in @user
flash[:notice] = t('welcome')
flash.keep(:notice)
render js: "window.location = '#{registrar_invoices_path}'"
render js: "window.location = '#{registrar_root_path}'"
when 'NOT_VALID'
render json: { message: t('user_signature_is_invalid') }, status: :bad_request
when 'EXPIRED_TRANSACTION'