Code cleanup.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9946 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2012-07-08 07:36:58 +00:00
1 parent ab96a29460
commit c11f5a23fe
2 files changed
+58

No files matched your search

+4
View File
@@ -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