Added a plugin hook for :controller_account_success_authentication_after

#3019

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2609 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis 2009-03-20 23:52:42 +00:00
parent 40a039ce1c
commit e48cc150ec
1 changed files with 1 additions and 0 deletions

View File

@ -218,6 +218,7 @@ class AccountController < ApplicationController
token = Token.create(:user => user, :action => 'autologin')
cookies[:autologin] = { :value => token.value, :expires => 1.year.from_now }
end
call_hook(:controller_account_success_authentication_after, {:user => user })
redirect_back_or_default :controller => 'my', :action => 'page'
end