From e48cc150ec7db0758d8025c376288f36becbbb2f Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Fri, 20 Mar 2009 23:52:42 +0000 Subject: [PATCH] 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 --- app/controllers/account_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index 79d3041e1..1b3bf63eb 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -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 -- 2.39.5