##// END OF EJS Templates
Fixed: autologin broken....
Jean-Philippe Lang -
r672:1187ad96ac49
parent child
Show More
@@ -37,7 +37,7 class ApplicationController < ActionController::Base
37 User.current = User.find(session[:user_id])
37 User.current = User.find(session[:user_id])
38 elsif cookies[:autologin] && Setting.autologin?
38 elsif cookies[:autologin] && Setting.autologin?
39 # auto-login feature
39 # auto-login feature
40 User.current = User.find_by_autologin_key(autologin_key)
40 User.current = User.find_by_autologin_key(cookies[:autologin])
41 elsif params[:key] && accept_key_auth_actions.include?(params[:action])
41 elsif params[:key] && accept_key_auth_actions.include?(params[:action])
42 # RSS key authentication
42 # RSS key authentication
43 User.current = User.find_by_rss_key(params[:key])
43 User.current = User.find_by_rss_key(params[:key])
General Comments 0
You need to be logged in to leave comments. Login now