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,7 +205,8 @@ class SMSMFA(mfas.MFA):
)
if self.smsResponseErrorAction.value == '1':
raise Exception('SMS response error')
return mfas.MFA.RESULT.ALLOWED
else:
return mfas.MFA.RESULT.ALLOWED
return mfas.MFA.RESULT.OK
def sendSMS_GET(self, userId: str, username: str, url: str) -> mfas.MFA.RESULT: