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