MAAS new user creation requires E-Mail address, throws wrong error when not provided
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Raphaël Badin |
Bug Description
Steps to reproduce:
Log into MAAS
Click on the gear
Click "Add User"
Give the user a username and full name
Do not give the user an email address
Set the user's password
Do not make the user an administrator
Click Add User
Expected behavior
The user should be created
Observed behavior
The creation will error out with"User with this E-mail address already exists."
Why this is a problem
1. Whereas the username, password, and password confirmation fields are marked as required in the GUI, the E-Mail address is not marked as required. Either mark the field as required, or allow the creation to succeed as outlined above
2. The error is incorrect. When no email address is specified, the E-Mail address cannot possibly already exist.
Related branches
- Julian Edwards (community): Approve
-
Diff: 37 lines (+15/-1)2 files modifiedsrc/maasserver/forms.py (+1/-1)
src/maasserver/tests/test_forms.py (+14/-0)
Changed in maas: | |
assignee: | nobody → Raphaël Badin (rvb) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Thanks for the bug.