summaryrefslogtreecommitdiffstats
path: root/app/controllers/account_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-07 17:45:12 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-07 17:45:12 +0000
commit986ffb24343877a76b505363aa2dc836e16465f5 (patch)
treef7ad269a7abd67dbfa994958c2e536a768e1a7cd /app/controllers/account_controller.rb
parentefc6abea07a7a437b0a68cfb297b53fbe6d9de2b (diff)
downloadredmine-986ffb24343877a76b505363aa2dc836e16465f5.tar.gz
redmine-986ffb24343877a76b505363aa2dc836e16465f5.zip
Use named routes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9940 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/account_controller.rb')
-rw-r--r--app/controllers/account_controller.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb
index 5c4ecaf40..ea3dcb1ae 100644
--- a/app/controllers/account_controller.rb
+++ b/app/controllers/account_controller.rb
@@ -70,7 +70,7 @@ class AccountController < ApplicationController
if token.save
Mailer.lost_password(token).deliver
flash[:notice] = l(:notice_account_lost_email_sent)
- redirect_to :action => 'login'
+ redirect_to signin_path
return
end
end
@@ -129,7 +129,7 @@ class AccountController < ApplicationController
token.destroy
flash[:notice] = l(:notice_account_activated)
end
- redirect_to :action => 'login'
+ redirect_to signin_path
end
private
@@ -224,7 +224,7 @@ class AccountController < ApplicationController
def onthefly_creation_failed(user, auth_source_options = { })
@user = user
session[:auth_source_registration] = auth_source_options unless auth_source_options.empty?
- render :action => 'register'
+ render register_path
end
def invalid_credentials
@@ -240,7 +240,7 @@ class AccountController < ApplicationController
if user.save and token.save
Mailer.register(token).deliver
flash[:notice] = l(:notice_account_register_done)
- redirect_to :action => 'login'
+ redirect_to signin_path
else
yield if block_given?
end
@@ -277,6 +277,6 @@ class AccountController < ApplicationController
def account_pending
flash[:notice] = l(:notice_account_pending)
- redirect_to :action => 'login'
+ redirect_to signin_path
end
end