CZ-NIC / django-fido

Django application for FIDO protocol U2F
GNU General Public License v3.0
28 stars 11 forks source link

Unexisting user causes server error #159

Closed stinovlas closed 2 years ago

stinovlas commented 2 years ago

When I try to perform one step authentication using Fido2AuthenticationRequestView and enter username that does not exist in database, I get server error

DoesNotExist at /django_fido/authentication/request/

User matching query does not exist.

I believe django-fido should catch the exception and return some helpful error message instead.