]> source.dussan.org Git - redmine.git/commitdiff
Added a plugin hook for :controller_account_success_authentication_after
authorEric Davis <edavis@littlestreamsoftware.com>
Fri, 20 Mar 2009 23:52:42 +0000 (23:52 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Fri, 20 Mar 2009 23:52:42 +0000 (23:52 +0000)
  #3019

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2609 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/account_controller.rb

index 79d3041e1591f59ac1f4b524705221622e0dd619..1b3bf63ebd15ee250e66e668efc7e88d3ae54e51 100644 (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