mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-11-01 21:41:45 +08:00
fix: 🐛 fix mfa get option error
This commit is contained in:
parent
6a3c44f866
commit
170375fe04
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user