Fixed a bug where the system would crash if a user tried to recover their password.
This commit is contained in:
parent
a96604507d
commit
24946858a4
1 changed files with 2 additions and 1 deletions
|
|
@ -444,7 +444,8 @@ sub www_recoverPasswordFinish {
|
|||
$password .= chr(ord('A') + randint(32));
|
||||
}
|
||||
$encryptedPassword = Digest::MD5::md5_base64($password);
|
||||
WebGUI::SQL->write("update users set identifier='$encryptedPassword' where userId='$userId'");
|
||||
my $u = WebGUI::User->new($userId);
|
||||
$u->identifier($encryptedPassword);
|
||||
$flag = 1;
|
||||
$message = $session{setting}{recoverPasswordEmail};
|
||||
$message .= "\n".WebGUI::International::get(50).": ".$username."\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue