Skip to content

Commit

Permalink
Merge pull request XOOPS#1454 from mambax7/feature/issue_1451_wrong_v…
Browse files Browse the repository at this point in the history
…ariable_name

fix for XOOPS#1451
  • Loading branch information
mambax7 authored Feb 2, 2024
2 parents d435770 + eec8c93 commit 18a01ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/modules/profile/changemail.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
$pass = isset($_POST['passwd']) ? $myts->stripSlashesGPC(trim($_POST['passwd'])) : '';
$email = isset($_POST['newmail']) ? $myts->stripSlashesGPC(trim($_POST['newmail'])) : '';
$errors = array();
if (!password_verify($oldpass, $GLOBALS['xoopsUser']->getVar('pass', 'n'))) {
if (!password_verify($pass, $GLOBALS['xoopsUser']->getVar('pass', 'n'))) {
$errors[] = _PROFILE_MA_WRONGPASSWORD;
}
if (!checkEmail($email)) {
Expand Down

0 comments on commit 18a01ba

Please sign in to comment.