justinmayer / kagi

WebAuthn security keys and TOTP multi-factor authentication for Django
BSD 2-Clause "Simplified" License
91 stars 10 forks source link

Existing WebAuthn key check repeated twice in KagiLoginView #39

Closed justinmayer closed 4 years ago

justinmayer commented 4 years ago

In KagiLoginView, it seems we have a redundant check for whether a user has a registered WebAuthn key: https://github.com/justinmayer/kagi/blob/561f4e74dcfe772da7f506056477b75c0344e322/kagi/views/login.py#L25-L29