If user_return_to procedure is invalid then remove it from session

This commit is contained in:
Mathieu Magnin 2017-11-21 10:10:19 +01:00
parent 6fcc799c67
commit b4b394bf18

View file

@ -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