diff --git a/server/src/uds/mfas/SMS/mfa.py b/server/src/uds/mfas/SMS/mfa.py index 5951c11d..6c7fd819 100644 --- a/server/src/uds/mfas/SMS/mfa.py +++ b/server/src/uds/mfas/SMS/mfa.py @@ -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: