Merge pull request #3884 from alphagov/add-webauthn-as-auth-type

Add webauthn as an auth type
This commit is contained in:
Pea Tyczynska
2021-05-13 14:32:03 +01:00
committed by GitHub
4 changed files with 12 additions and 2 deletions

View File

@@ -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)