]> source.dussan.org Git - redmine.git/commitdiff
Use named routes.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 10 Mar 2015 18:22:53 +0000 (18:22 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 10 Mar 2015 18:22:53 +0000 (18:22 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@14070 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/application_controller.rb

index e52cc6186ed6476c9d0b9b4e40be3d6eac3ef27c..6c16f99c19e16c5ff87b9a6ed16e3ad2babf9feb 100644 (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"' }