From c11f5a23fee248fe12236585c6638d104e8fd80d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 8 Jul 2012 07:36:58 +0000 Subject: Code cleanup. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9946 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/account_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app') 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 -- cgit v1.2.3