URL: https://bugs.launchpad.net/mahara/+bug/1720237
Bug description: Adding default user name to use in registration Environment to be tested: Master Browser to be tested: Any browser Precondition: 1. An Institution admin user ‘Inst one’ should exist. 2. Make sure to allow emails by changing the config file to "$cfg->sendemail = true;" 3. Save the config file by making changes to "$cfg->sendallemailto = '<valid email>';" Note: ‘Valid email’ here is your personal email address. Steps to reproduce: 1. Log in as ‘Inst one’. 2. Navigate to Administration menu > Institutions > Settings. 3. Click the ‘Settings’ button for ‘Institution one’. 4. Switch ‘Registration allowed’ to ‘Yes’. 5. Switch ‘Confirm registration’ to ‘No’. 6. Click the ‘Submit’ button. 7. Log out from the ‘Inst admin’ user. 8. Click the ‘Register’ link on the Mahara login screen. 9. Enter ‘First name’ & ‘Last name’ with the text ‘<script>alert(1)</script>’. 10. Enter the email that is used at the precondition 3 under ‘Email address’. 11. Click the ‘Register’ button. Expected result: Registration email with sign-up link should be sent. 12. Click the ‘Registration link’ that is sent to the email. Expected result: ‘New username’ field should fill with text as ‘user’ by default. 13. Enter the ‘New password’ & ‘Confirm password’. 14. Enter the ‘First name’ & ‘Last name’. 15. Click the ‘Submit’ button. Expected result: The user should log in successfully and the text ‘Your new password has been saved’ should be displayed on the screen. 16. Log out of the user. 17. Repeat steps 8 to 12 but make sure to use different email at step 10. Expected result: ‘New username’ field should fill with text as ‘user1’ by default. Note: By repeating steps 8 to 12 the default 'New username' should be incremented by one, for example user2, user3, and user4. -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1720237 Title: User registration username selection Status in Mahara: In Progress Bug description: When we have user registration allowed for an institution and a new user is registered with empty "first name" and empty "last name", then the system generates a new "username" that is a number. See image attached. We need to change it to a word plus a number, like for example 'user1', 'user4', 'user56'. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1720237/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : [email protected] Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp

