CMS MADE SIMPLE FORGE

Self Registration

 

[#11800] Can't correct password if submitting after a "passwords don't match"

avatar
Created By: Matt Hornsby (DIGI3) (DIGI3)
Date Submitted: Tue Apr 24 19:00:10 -0400 2018

Assigned To:
Version: 1.14
CMSMS Version: 2.2.7
Severity: Minor
Resolution: Works For Me
State: Open
Summary:
Can't correct password if submitting after a "passwords don't match"
Detailed Description:
On a clean install, using all default templates
{SelfRegistration group=test}

To recreate issue:
-Go to the registration page and fill out the required fields, and enter
passwords that don't match
-hit submit
-correct the passwords and hit submit again
-still receive 'do not match' error message

To get around it, users need to reload the page.

I can see that when it comes back with the error again, the masked passwords are
the length of the unmatching ones, so it looks like it's storing those values
regardless of what you enter again.


History

Comments
avatar
Date: 2018-04-24 19:17
Posted By: Matt Hornsby (DIGI3) (DIGI3)

Somewhat related to this issue, if you register with a username that's already
in use you get the same kind of problem. No matter what you change it to, it
will tell you it's already in use. Only fix is to reload the page and start from
scratch.
This happens whether you use email addresses for usernames or not.
      
avatar
Date: 2018-06-05 03:02
Posted By: Mathieu Muths (airelibre) (airelibre)

Same problem here - I edited the file
modules/SelfRegistration/lib/class.selfreg_utils.php in function "clean_params"
line 50 :

Replaced :
$params = array_merge($params,$tmp);

With :
$params = array_merge($tmp,$params);

But this require some tests ... seems to work here
      
avatar
Date: 2018-09-22 11:04
Posted By: Robert Campbell (calguy1000)

Just tested, worked here.
      
Updates

Updated: 2018-09-22 11:04
resolution_id: 5 => 11

Updated: 2018-04-24 19:17
resolution_id: => 5