Log the user in after registration if account activation is not needed.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1521 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-06-09 18:59:15 +00:00
parent 80a7486f95
commit 19cb6f96f4
2 changed files with 8 additions and 3 deletions
+2 -1
View File
@@ -134,8 +134,9 @@ class AccountController < ApplicationController
# Automatic activation
@user.status = User::STATUS_ACTIVE
if @user.save
self.logged_user = @user
flash[:notice] = l(:notice_account_activated)
redirect_to :action => 'login'
redirect_to :controller => 'my', :action => 'account'
end
else
# Manual activation by the administrator