If user_return_to procedure is invalid then remove it from session
This commit is contained in:
parent
6fcc799c67
commit
b4b394bf18
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ class Users::SessionsController < Sessions::SessionsController
|
|||
private
|
||||
|
||||
def error_procedure
|
||||
session["user_return_to"] = nil
|
||||
flash.alert = t('errors.messages.procedure_not_found')
|
||||
redirect_to url_for root_path
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue