Fixed: autologin broken.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@683 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
840f18b1c7
commit
1187ad96ac
|
@ -37,7 +37,7 @@ class ApplicationController < ActionController::Base
|
|||
User.current = User.find(session[:user_id])
|
||||
elsif cookies[:autologin] && Setting.autologin?
|
||||
# auto-login feature
|
||||
User.current = User.find_by_autologin_key(autologin_key)
|
||||
User.current = User.find_by_autologin_key(cookies[:autologin])
|
||||
elsif params[:key] && accept_key_auth_actions.include?(params[:action])
|
||||
# RSS key authentication
|
||||
User.current = User.find_by_rss_key(params[:key])
|
||||
|
|
Loading…
Reference in New Issue