mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-04 13:41:38 -04:00
Merge pull request #3884 from alphagov/add-webauthn-as-auth-type
Add webauthn as an auth type
This commit is contained in:
@@ -170,6 +170,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