django-mfa2
django-mfa2 copied to clipboard
AttributeError: 'UnicodeDecodeError' object has no attribute 'message'
In FIDO2.py there's wrong code raising exception in exception handling block
Current:
Expected:
return HttpResponse(
simplejson.dumps({"status": "ERR", "message": str(exp)}),
content_type="application/json",
status=400
)
Steps to reproduce: call fido2_complete_auth endpoint with some random bytes encoded into payload before cbor.encode call
Sorry, just saw this, you can add it to your PR.
Thanks