1
I noticed that I could not change password using the
/modules/profile/changepass.php
script in my new XOOPS 2.2.1
I'm certainly no expert in xoops, but I noticed by snooping around that the changepass.php script is passing the 'uname' value right on down to the 'loginUser' function. Though the arguments on all the function calls use 'uname', a quick look inside the 'loginUser' function shows that it is compared against the 'loginname' value in the database.
Fix is a simple swap in the changepass.php file:
OLD not working:
$stop = checkPassword($xoopsUser->getVar('uname'), $_POST['oldpass'], $_POST['newpass'], $_POST['vpass']);
NEW working:
$stop = checkPassword($xoopsUser->getVar('loginname'), $_POST['oldpass'], $_POST['newpass'], $_POST['vpass']);