[Rt-commit] [svn] r1117 - rt/trunk/html
huberth at pallas.eruditorum.org
huberth at pallas.eruditorum.org
Fri Jun 18 17:44:26 EDT 2004
Author: huberth
Date: Fri Jun 18 17:44:25 2004
New Revision: 1117
Modified:
rt/trunk/html/autohandler
Log:
RT-Ticket: 5737
RT-Status: resolved
* RT now logs all login attempts. Successful logins are logged at level
info, failures at level error.
Modified: rt/trunk/html/autohandler
==============================================================================
--- rt/trunk/html/autohandler (original)
+++ rt/trunk/html/autohandler Fri Jun 18 17:44:25 2004
@@ -172,11 +172,15 @@
if (!$session{'CurrentUser'}->id() ||
!$session{'CurrentUser'}->IsPassword($pass))
{
+ $RT::Logger->error("FAILED LOGIN for $user from $ENV{'REMOTE_ADDR'}");
delete $session{'CurrentUser'};
$m->comp('/Elements/Login', %ARGS,
Error => loc('Your username or password is incorrect'));
$m->abort();
}
+ else {
+ $RT::Logger->info("Successful login for $user from $ENV{'REMOTE_ADDR'}");
+ }
}
# If we've got credentials, let's serve the file up.
More information about the Rt-commit
mailing list