Remove space in autogenerated username during self-registration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Dianne Tennent |
Bug Description
When someone self-registers on the site and has a space in their first or last name, Mahara keeps that and suggests it in the pre-filled username and allows for it to be created even though the description says that the username can't contain spaces. That is causing problems when people are trying to log in as the username is not recognised correctly.
To replicate:
1. Turn on self-registration for the site in the institution settings. Leave 'Confirm registration' turned on.
2. Self-register and put a space in the first name and the last name, e.g. first name: 'Te Aroha'. last name 'Parker Jones'.
3. Approve the account as administrator.
4. As the new account holder, click the registration link to complete your self-registration.
Expected result: There are no spaces in the username.
Actual result: There are spaces in the username and when the form is completed, Mahara doesn't complain.
Changed in mahara: | |
assignee: | nobody → Dianne Tennent (dianne-t) |
Changed in mahara: | |
status: | Confirmed → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Leaving this here for Dianne to fix.