Fix 2FA being enabled by default (woops)

This commit is contained in:
Vortrex
2022-05-20 17:55:52 -05:00
parent cfdfc51e14
commit e97bf75c59

View File

@@ -1414,14 +1414,8 @@ function isAccountEmailVerified(accountData) {
// =========================================================================== // ===========================================================================
function isAccountTwoFactorAuthenticationVerified(accountData) {
return hasBitFlag(accountData.flags.moderation, getModerationFlagValue("TwoFactorAuthVerified"));
}
// ===========================================================================
function doesPlayerHaveTwoFactorAuthEnabled(client) { function doesPlayerHaveTwoFactorAuthEnabled(client) {
return hasBitFlag(getPlayerData(client).accountData.settings, getAccountSettingsFlagValue("TwoFactorAuth")); return hasBitFlag(getPlayerData(client).accountData.settings, getAccountSettingsFlagValue("TwoStepAuth"));
} }
// =========================================================================== // ===========================================================================