From: Jean-Philippe Lang Date: Thu, 30 Aug 2007 16:33:50 +0000 (+0000) Subject: Fixed: autologin broken. X-Git-Tag: 0.6.0~199 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1187ad96ac4922ddd61d4292453a9bec9614abdd;p=redmine.git Fixed: autologin broken. git-svn-id: http://redmine.rubyforge.org/svn/trunk@683 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/application.rb b/app/controllers/application.rb index cac2d6464..1bb2eac07 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -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])