git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.2-stable@6188
e93f8b46-1217-0410-a6f0-
8f06a7374b81
user = User.try_to_autologin(cookies[:autologin])
session[:user_id] = user.id if user
user
- elsif params[:format] == 'atom' && params[:key] && accept_key_auth_actions.include?(params[:action])
+ elsif params[:format] == 'atom' && request.get? && params[:key] && accept_key_auth_actions.include?(params[:action])
# RSS key authentication does not start a session
User.find_by_rss_key(params[:key])
elsif Setting.rest_api_enabled? && api_request?