1
0
Fork 0
mirror of synced 2024-09-30 01:08:13 +13:00

fix: mfa with admin mode

This commit is contained in:
Torsten Dittmann 2024-04-17 11:10:33 +02:00
parent 05dd17bd55
commit 9150ceadc7

View file

@ -280,7 +280,6 @@ App::init()
throw new Exception(Exception::USER_PASSWORD_RESET_REQUIRED);
}
if ($mode !== APP_MODE_ADMIN) {
$mfaEnabled = $user->getAttribute('mfa', false);
$hasVerifiedEmail = $user->getAttribute('emailVerification', false);
$hasVerifiedPhone = $user->getAttribute('phoneVerification', false);
@ -293,7 +292,6 @@ App::init()
throw new Exception(Exception::USER_MORE_FACTORS_REQUIRED);
}
}
}
});
App::init()