Clear return_to URL in session when signing out.

This commit is contained in:
Robert Waltemath 2014-01-03 19:42:08 +01:00
parent 933f4fe67a
commit a0f55ba812

View file

@ -28,6 +28,7 @@ class SessionsController < ApplicationController
def destroy def destroy
session[:user_id] = nil session[:user_id] = nil
session[:return_to] = nil
redirect_to login_url, :notice => I18n.t('sessions.logged_out') redirect_to login_url, :notice => I18n.t('sessions.logged_out')
end end
end end