Clear return_to URL in session when signing out.
This commit is contained in:
parent
933f4fe67a
commit
a0f55ba812
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@ class SessionsController < ApplicationController
|
|||
|
||||
def destroy
|
||||
session[:user_id] = nil
|
||||
session[:return_to] = nil
|
||||
redirect_to login_url, :notice => I18n.t('sessions.logged_out')
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue