redirect_to :controller => "account", :action => "login", :back_url => url
end
}
- format.atom { redirect_to :controller => "account", :action => "login", :back_url => url }
+ format.any(:atom, :pdf, :csv) {
+ redirect_to :controller => "account", :action => "login", :back_url => url
+ }
format.xml { head :unauthorized, 'WWW-Authenticate' => 'Basic realm="Redmine API"' }
format.js { head :unauthorized, 'WWW-Authenticate' => 'Basic realm="Redmine API"' }
format.json { head :unauthorized, 'WWW-Authenticate' => 'Basic realm="Redmine API"' }
+ format.any { head :unauthorized }
end
return false
end