Fixed a problem where a user could attempt to recover their password with a blank email account and screw up all the passwords for all the users that hadn't specified an email account.
This commit is contained in:
parent
53d306ae5b
commit
40684441d2
1 changed files with 3 additions and 0 deletions
|
|
@ -507,6 +507,9 @@ sub www_recoverPassword {
|
|||
#-------------------------------------------------------------------
|
||||
sub www_recoverPasswordFinish {
|
||||
my ($sth, $username, $encryptedPassword, $userId, $password, $flag, $message, $output);
|
||||
if ($session{form}{email} eq "") {
|
||||
return '<ul><li>'.WebGUI::International::get(743).'</li></ul>'.www_recoverPassword()
|
||||
}
|
||||
$sth = WebGUI::SQL->read("select users.username, users.userId from users, userProfileData
|
||||
where users.userId=userProfileData.userId and userProfileData.fieldName='email'
|
||||
and fieldData=".quote($session{form}{email}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue