diff options
| author | ivan <ivan> | 2004-11-11 12:13:50 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2004-11-11 12:13:50 +0000 |
| commit | b8cfd0780aa40bb07f3215bf9cb58011f5e32a35 (patch) | |
| tree | 5b5deb6f64cf6eb9f4630675725b59e7bfad137a /rt/html/autohandler | |
| parent | 0a2e57727e8f00fdc8ec4596619fb206c95fa919 (diff) | |
| parent | c582e92888b4a5553e1b4e5214cf35217e4a0cf0 (diff) | |
This commit was generated by cvs2svn to compensate for changes in r3874,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'rt/html/autohandler')
| -rw-r--r-- | rt/html/autohandler | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rt/html/autohandler b/rt/html/autohandler index b2a407add..9f93eb054 100644 --- a/rt/html/autohandler +++ b/rt/html/autohandler @@ -117,6 +117,7 @@ elsif ( $RT::WebExternalAuth ) { 'HomePhone', 'WorkPhone', 'MobilePhone', 'PagerPhone', 'Address1', 'Address2', 'City', 'State', 'Zip', 'Country') { + $m->comp('/Elements/Callback', %ARGS, _CallbackName => 'NewUser'); my $method = "Set$attribute"; $UserObj->$method($new_user_info->{$attribute}) @@ -171,11 +172,15 @@ if (!$session{'CurrentUser'} && defined ($user) && defined ($pass) ){ 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. |
