small MFA fixes for generic SMS

This commit is contained in:
Adolfo Gómez García 2022-06-29 23:17:52 +02:00
parent 11d9c77a79
commit 6094f55182

View File

@ -205,6 +205,7 @@ class SMSMFA(mfas.MFA):
)
if self.smsResponseErrorAction.value == '1':
raise Exception('SMS response error')
else:
return mfas.MFA.RESULT.ALLOWED
return mfas.MFA.RESULT.OK