Merge branch 'guange_dev' into szzh

This commit is contained in:
sw 2015-05-28 10:31:06 +08:00
commit a58a548095
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ class ApplicationController < ActionController::Base
# Logs out current user
def logout_user
if User.current.logged?
cookies.delete(autologin_cookie_name, domain: Redmine::Configuration['cookie_domain'])
cookies.delete(autologin_cookie_name, domain: :all)
# Token.delete_all(["user_id = ? AND action = ?", User.current.id, 'autologin'])
self.logged_user = nil
end