Merge pull request #7984 from appwrite/fix-mfa-admin-mode-condition
fix: mfa with admin mode
This commit is contained in:
commit
3a2e9b6f4a
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue