FrontEndUsers bugs and fixes (when email is username)
Posted: Mon Aug 18, 2008 10:01 pm
I've been setting up FrontEndUsers 1.5.2 on CMSMS 1.4.1 and selected the option to use the email address as the username. I've found and, I think, solved a couple of bugs with the lost password facility.
Using the lost password facility and entering a valid and registered email address gives the error:
i.e. "message" not "mesage".
Trying the lost password again now returns the error:
i.e. column "id", not "userid".
The lost password form now sends an email that provides a link to allow a new password to be selected.
Nick
Using the lost password facility and entering a valid and registered email address gives the error:
This is caused by a spelling mistake in modules/FrontEndUsers/action.do_forgotpw.php on line 150. It should read:Warning: Parameter mesage is not known... dropped in /home/xxx/public_html/lib/misc.functions.php on line 1301
Code: Select all
$params['message'] = $this->Lang('error_couldnotfindemail');
Trying the lost password again now returns the error:
This error is returned because the wrong column name is specified in modules/FrontEndUsers/FrontEndUsers.api.php on lines 943/944. They should read:Could not find an email address
Code: Select all
$q = 'SELECT username FROM '.cms_db_prefix().
'module_feusers_users WHERE id = ?';
The lost password form now sends an email that provides a link to allow a new password to be selected.
Nick