fix: 🐛 fix mfa get option error

This commit is contained in:
Jin 2025-04-02 23:13:59 +02:00
parent 6a3c44f866
commit 170375fe04

View File

@ -3,8 +3,8 @@ import options from './options.js';
import totpEncryptionService from './encryption/totp_encryption.js';
function isTotpEnabled(): boolean {
return options.getOption('mfaEnabled') === "true" &&
options.getOption('mfaMethod') === "totp" &&
return options.getOptionOrNull('mfaEnabled') === "true" &&
options.getOptionOrNull('mfaMethod') === "totp" &&
totpEncryptionService.isTotpSecretSet();
}