1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-10 20:55:21 +00:00

Use named routes.

git-svn-id: http://svn.redmine.org/redmine/trunk@14070 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2015-03-10 18:22:53 +00:00
parent e429d93945
commit 840881c76a

View File

@ -240,11 +240,11 @@ class ApplicationController < ActionController::Base
if request.xhr?
head :unauthorized
else
redirect_to :controller => "account", :action => "login", :back_url => url
redirect_to signin_path(:back_url => url)
end
}
format.any(:atom, :pdf, :csv) {
redirect_to :controller => "account", :action => "login", :back_url => url
redirect_to signin_path(:back_url => url)
}
format.xml { head :unauthorized, 'WWW-Authenticate' => 'Basic realm="Redmine API"' }
format.js { head :unauthorized, 'WWW-Authenticate' => 'Basic realm="Redmine API"' }