Merge lp:~cprov/canonical-identity-provider/cleaner-usernames into lp:canonical-identity-provider/release
Proposed by
Celso Providelo
Status: | Merged |
---|---|
Approved by: | Celso Providelo |
Approved revision: | no longer in the source branch. |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | lp:~cprov/canonical-identity-provider/cleaner-usernames |
Merge into: | lp:canonical-identity-provider/release |
Diff against target: |
172 lines (+88/-11) 4 files modified
src/identityprovider/forms.py (+10/-4) src/identityprovider/tests/test_forms.py (+55/-0) src/identityprovider/tests/test_views_server.py (+1/-1) src/webui/tests/test_views_account.py (+22/-6) |
To merge this branch: | bzr merge lp:~cprov/canonical-identity-provider/cleaner-usernames |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Manrique (community) | Approve | ||
Review via email: mp+365370@code.launchpad.net |
Commit message
Stop accepting usernames with DOTs and PLUSes.
Description of the change
See the entire context in https:/
To post a comment you must log in.
LGTM - my only concern is - this will force users with non-compliant usernames to update them if they want to edit their account details, correct? since VALID_NAME_RE is used in EditAccountForm's clean_username method. Do we know about how many users would be in this situation? and - since this username is tied to Launchpad's username, could this result in a situation where a user is completely blocked from performing account changes? example: someone with a non-compliant name and a published PPA will be unable to change their username due to Launchpad policy which could prevent them from e.g. changing their password.
That's about it, the code looks reasonable vs. the intent described in the Trello card.