mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Add webauth as an auth type
When showing what auth type user uses to sign in, add a text for users with webauthn. On password change or sign in, throw not implemented error if user uses webauthn auth.
This commit is contained in:
@@ -169,6 +169,10 @@ class User(JSONModel, UserMixin):
|
||||
def email_auth(self):
|
||||
return self.auth_type == 'email_auth'
|
||||
|
||||
@property
|
||||
def webauthn_auth(self):
|
||||
return self.auth_type == 'webauthn_auth'
|
||||
|
||||
def reset_failed_login_count(self):
|
||||
user_api_client.reset_failed_login_count(self.id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user