diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-03-10 18:22:53 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-03-10 18:22:53 +0000 |
commit | 840881c76a5d50af882c2b2badd1b9182656fce0 (patch) | |
tree | c581c7d81adf9d062b501276c1e581edfbb6d7d1 /app | |
parent | e429d93945e7acaec9ff2f3118a7cd650345e077 (diff) | |
download | redmine-840881c76a5d50af882c2b2badd1b9182656fce0.tar.gz redmine-840881c76a5d50af882c2b2badd1b9182656fce0.zip |
Use named routes.
git-svn-id: http://svn.redmine.org/redmine/trunk@14070 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/application_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index e52cc6186..6c16f99c1 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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"' } |