1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-03-13 08:58:35 +03:00

Added reseting tries to mfa

This commit is contained in:
Adolfo Gómez García 2023-02-23 03:25:42 +01:00
parent 98954b5e3b
commit b14581c522
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -266,6 +266,7 @@ def mfa(request: ExtendedHttpRequest) -> HttpResponse:
pass # Will render again the page
else:
# Make MFA send a code
request.session['mfa_tries'] = 0 # Reset tries
try:
result = mfaInstance.process(
request,