🐛 WebAuthn bug fixes

- User may not have name
- user_verification should be discouraged to work on iOS
This commit is contained in:
devStorm 2020-05-08 14:21:38 -07:00
parent 18e50e4a28
commit d236f906ad
No known key found for this signature in database
GPG key ID: D52E1B66F336AC57
2 changed files with 3 additions and 2 deletions

View file

@ -42,7 +42,7 @@ def fido():
webauthn_user = webauthn.WebAuthnUser(
user.fido_uuid,
user.email,
user.name,
user.name if user.name else user.email,
False,
user.fido_credential_id,
user.fido_pk,

View file

@ -81,9 +81,10 @@ def fido_setup():
RP_ID,
fido_uuid,
current_user.email,
current_user.name,
current_user.name if current_user.name else current_user.email,
False,
attestation="none",
user_verification="discouraged",
)
# Don't think this one should be used, but it's not configurable by arguments