stages/authenticator_validate: log duo error

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-11-24 11:36:43 +01:00
parent 6843c8389b
commit d0308a8239

View file

@ -200,6 +200,7 @@ def validate_challenge_duo(device_pk: int, stage_view: StageView, user: User) ->
)
# {'result': 'allow', 'status': 'allow', 'status_msg': 'Success. Logging you in...'}
if response["result"] == "deny":
LOGGER.debug("duo push response", result=response["result"], msg=response["status_msg"])
login_failed.send(
sender=__name__,
credentials={"username": user.username},