[Rt-commit] r5721 - in rt/branches/3.6-RELEASE: .

kevinr at bestpractical.com kevinr at bestpractical.com
Tue Aug 8 14:16:44 EDT 2006


Author: kevinr
Date: Tue Aug  8 14:16:31 2006
New Revision: 5721

Modified:
   rt/branches/3.6-RELEASE/   (props changed)
   rt/branches/3.6-RELEASE/html/autohandler

Log:
 r17906 at sad-girl-in-snow:  kevinr | 2006-08-08 14:15:30 -0400
 * Added FailedLogin and SuccessfulLogin callbacks to the autohandler


Modified: rt/branches/3.6-RELEASE/html/autohandler
==============================================================================
--- rt/branches/3.6-RELEASE/html/autohandler	(original)
+++ rt/branches/3.6-RELEASE/html/autohandler	Tue Aug  8 14:16:31 2006
@@ -238,11 +238,13 @@
         $RT::Logger->error("FAILED LOGIN for $user from $ENV{'REMOTE_ADDR'}");
         $m->comp( '/Elements/Login', %ARGS,
             Error => loc('Your username or password is incorrect') );
+        $m->comp( '/Elements/Callback', %ARGS, _CallbackName => 'FailedLogin' );
         $m->abort;
     }
     else {
         $RT::Logger->info(
             "Successful login for $user from $ENV{'REMOTE_ADDR'}");
+        $m->comp( '/Elements/Callback', %ARGS, _CallbackName => 'SuccessfulLogin' );
     }
 }
 


More information about the Rt-commit mailing list