FIX #yogosha12673
This commit is contained in:
parent
ae845fccc5
commit
2aea86dc8c
@ -47,7 +47,7 @@ RemoveFromGroup=Remove from group
|
|||||||
PasswordChangedAndSentTo=Password changed and sent to <b>%s</b>.
|
PasswordChangedAndSentTo=Password changed and sent to <b>%s</b>.
|
||||||
PasswordChangeRequest=Request to change password for <b>%s</b>
|
PasswordChangeRequest=Request to change password for <b>%s</b>
|
||||||
PasswordChangeRequestSent=Request to change password for <b>%s</b> sent to <b>%s</b>.
|
PasswordChangeRequestSent=Request to change password for <b>%s</b> sent to <b>%s</b>.
|
||||||
IfLoginExistPasswordRequestSent=If this login is a valid account, an email to reset password has been sent.
|
IfLoginExistPasswordRequestSent=If this login is a valid account (with a valid email), an email to reset password has been sent.
|
||||||
IfEmailExistPasswordRequestSent=If this email is a valid account, an email to reset password has been sent.
|
IfEmailExistPasswordRequestSent=If this email is a valid account, an email to reset password has been sent.
|
||||||
ConfirmPasswordReset=Confirm password reset
|
ConfirmPasswordReset=Confirm password reset
|
||||||
MenuUsersAndGroups=Users & Groups
|
MenuUsersAndGroups=Users & Groups
|
||||||
|
|||||||
@ -139,7 +139,12 @@ if (empty($reshook)) {
|
|||||||
$username = '';
|
$username = '';
|
||||||
} else {
|
} else {
|
||||||
if (!$edituser->email) {
|
if (!$edituser->email) {
|
||||||
$message = '<div class="error">'.$langs->trans("ErrorLoginHasNoEmail").'</div>';
|
//$message = '<div class="error">'.$langs->trans("ErrorLoginHasNoEmail").'</div>';
|
||||||
|
if (!$isanemail) {
|
||||||
|
$message .= $langs->trans("IfLoginExistPasswordRequestSent");
|
||||||
|
} else {
|
||||||
|
$message .= $langs->trans("IfEmailExistPasswordRequestSent");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$newpassword = $edituser->setPassword($user, '', 1);
|
$newpassword = $edituser->setPassword($user, '', 1);
|
||||||
if ($newpassword < 0) {
|
if ($newpassword < 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user