summaryrefslogtreecommitdiffstats
path: root/app/controllers/account_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-08 07:36:58 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-08 07:36:58 +0000
commitc11f5a23fee248fe12236585c6638d104e8fd80d (patch)
tree5fbac8a27ddd6a0b0d3ef2c52d584ec9d9ecbe8f /app/controllers/account_controller.rb
parentab96a29460c650540c6bb66b5463c3c6599f9c2c (diff)
downloadredmine-c11f5a23fee248fe12236585c6638d104e8fd80d.tar.gz
redmine-c11f5a23fee248fe12236585c6638d104e8fd80d.zip
Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9946 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/account_controller.rb')
-rw-r--r--app/controllers/account_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb
index c9cefe8c7..dec06541b 100644
--- a/app/controllers/account_controller.rb
+++ b/app/controllers/account_controller.rb
@@ -50,6 +50,10 @@ class AccountController < ApplicationController
return
end
@user = @token.user
+ unless @user && @user.active?
+ redirect_to home_url
+ return
+ end
if request.post?
@user.password, @user.password_confirmation = params[:new_password], params[:new_password_confirmation]
if @user.save