Add `no_users` check to login http endpoint
Bug #1872868 reported by
Caleb Ellis
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Alberto Donato | ||
2.7 |
Fix Released
|
High
|
Alberto Donato |
Bug Description
Before the UI split, the login template would conditionally display init information if there were currently no MAAS users:
'No admin user has been created yet. Use the "init" administration command to create one.'
The login response used to include `'no_users': UserProfile.
This should also be backported to 2.7.
GitHub issue: https:/
Related branches
~ack/maas:1872868-no-users-info-login-2.7
- Alberto Donato (community): Approve
-
Diff: 85 lines (+39/-3)2 files modifiedsrc/maasserver/views/account.py (+2/-0)
src/maasserver/views/tests/test_account.py (+37/-3)
~ack/maas:1872868-no-users-info-login
Merged
into
maas:master
- MAAS Lander: Approve
- Björn Tillenius: Approve
-
Diff: 85 lines (+39/-3)2 files modifiedsrc/maasserver/views/account.py (+2/-0)
src/maasserver/views/tests/test_account.py (+37/-3)
description: | updated |
description: | updated |
Changed in maas: | |
milestone: | none → 2.8.0b1 |
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in maas: | |
assignee: | nobody → Alberto Donato (ack) |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.