Skip to content

Commit

Permalink
Item1690: Call to the resetpasswd script is not logged
Browse files Browse the repository at this point in the history
Improved fix. We want the logging to happen when the password
has been reset and not let the logging be depending on successful
emailing. We actually want to be able to debug when someone says
they reset the password but never got the email.
Thanks to Olivier for the hint


git-svn-id: http://svn.foswiki.org/branches/Release01x00@4049 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
KennethLavrsen authored and KennethLavrsen committed Jun 6, 2009
1 parent e276e08 commit 5e967b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/lib/Foswiki/UI/Register.pm
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,6 @@ sub resetPassword {
$good = $good
&& _resetUsersPassword( $session, $userName, $introduction,
\$message );

$session->logEvent('resetpasswd', $userName) if $good;
}

my $action = '';
Expand Down Expand Up @@ -567,6 +565,9 @@ sub _resetUsersPassword {
return 0;
}

# Now that we have successfully reset the password we log the event
$session->logEvent('resetpasswd', $login);

# absolute URL context for email generation
$session->enterContext('absolute_urls');

Expand Down

0 comments on commit 5e967b6

Please sign in to comment.