X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fhtml%2Fautohandler;fp=rt%2Fhtml%2Fautohandler;h=9f93eb0545d16df39480ad285a514a2dfab5abeb;hp=b2a407add470b7209e01a4478a7fe21e47ec44b7;hb=c582e92888b4a5553e1b4e5214cf35217e4a0cf0;hpb=289340780927b5bac2c7604d7317c3063c6dd8cc 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.