mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-11 12:46:49 +00:00
feat(admin): a password an administrator sets can be one the user must change
The administrator's password form has "The user must change it at their next login". With it, the user is sent to the change form until they choose their own, as the generated admin password already does.
This commit is contained in:
parent
0e8130f1b0
commit
24896aaecd
4 changed files with 33 additions and 7 deletions
|
|
@ -7,7 +7,8 @@ ALLOWED_VIEWS = {"accounts:change_password", "accounts:logout", "accounts:login"
|
|||
|
||||
|
||||
class ForcePasswordChangeMiddleware:
|
||||
"""Send users who still have the generated admin password to the change form."""
|
||||
"""Send users who must change their password (the generated admin one, or one
|
||||
an administrator set) to the change form."""
|
||||
|
||||
def __init__(self, get_response):
|
||||
self.get_response = get_response
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue