mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
Allow platform admins to change user auth in the UI
So we do not have to go into the db when we need to change user auth. We do not allow this for users who use webauthn. We do not want to enable security downgrade for those users.
This commit is contained in:
committed by
Leo Hemsted
parent
8da8b167c9
commit
08f0393553
@@ -1015,6 +1015,16 @@ def filter_by_broadcast_permissions(valuelist):
|
||||
return [entry for entry in valuelist if any(entry in option for option in broadcast_permission_options)]
|
||||
|
||||
|
||||
class AuthTypeForm(StripWhitespaceForm):
|
||||
auth_type = GovukRadiosField(
|
||||
'Sign in using',
|
||||
choices=[
|
||||
('sms_auth', 'Text message code'),
|
||||
('email_auth', 'Email link'),
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
class BasePermissionsForm(StripWhitespaceForm):
|
||||
def __init__(self, all_template_folders=None, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user