Merge lp:~matiasb/canonical-identity-provider/updated-username-error-msg into lp:canonical-identity-provider/release
Proposed by
Matias Bordese
Status: | Merged |
---|---|
Approved by: | Matias Bordese |
Approved revision: | no longer in the source branch. |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | lp:~matiasb/canonical-identity-provider/updated-username-error-msg |
Merge into: | lp:canonical-identity-provider/release |
Diff against target: |
208 lines (+38/-22) 6 files modified
src/api/v20/tests/test_handlers.py (+8/-4) src/api/v20/tests/test_registration.py (+10/-5) src/identityprovider/forms.py (+7/-6) src/identityprovider/tests/test_forms.py (+6/-3) src/webui/tests/test_views_account.py (+4/-2) src/webui/tests/test_views_registration.py (+3/-2) |
To merge this branch: | bzr merge lp:~matiasb/canonical-identity-provider/updated-username-error-msg |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Manrique (community) | Approve | ||
Maximiliano Bertacchini | Approve | ||
Review via email: mp+369005@code.launchpad.net |
Commit message
Updated invalid username error message in account registration/edit form.
Description of the change
FWIW, as can be seen in the screenshots attached to the bug, besides the error message the field in error is already highlighted in red. This adds extra information in the message to help identify the field.
Changing the UX (to include labels or sth else) should probably go through the web team, who defined the current login/register form.
To post a comment you must log in.
Looks good to me.
A quick grep for INVALID_ USERNAME_ MSG shows there are no unformatted strings. Also, locally ran and checked for a simple code injection attack with username "<script> alert(' Injected! ');</script> ".