Defect #103

app/controllers/application.rb don't know 'autologin_key'

Added by Satoru KURASHIKI over 14 years ago. Updated over 14 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Resolution: Affected version:


I've met error at rev. 682, and avoid it by editing:

User.current = User.find(session[:user_id])
elsif cookies[:autologin] && Setting.autologin?
  1. 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])
  2. RSS key authentication
    User.current = User.find_by_rss_key(params[:key])

Older revision had method to set autologin_key, but it seems to be removed.

Associated revisions

Revision 2279
Added by Jean-Philippe Lang about 13 years ago

Fixes 103_set_custom_fields_editable migration from r2276 (#2526).


#1 Updated by Jean-Philippe Lang over 14 years ago

Fix committed in rev 683.


Also available in: Atom PDF