]> source.dussan.org Git - redmine.git/commitdiff
Fixed: autologin broken.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 30 Aug 2007 16:33:50 +0000 (16:33 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 30 Aug 2007 16:33:50 +0000 (16:33 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@683 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/application.rb

index cac2d64644c55d2ae9f9466a0be42fd115e115c9..1bb2eac0719227ce59c413703e00e58468e8b752 100644 (file)
@@ -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])