From 170375fe045fe39ae1d539daf2460a61dec67782 Mon Sep 17 00:00:00 2001 From: Jin <22962980+JYC333@users.noreply.github.com> Date: Wed, 2 Apr 2025 23:13:59 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20fix=20mfa=20get=20option?= =?UTF-8?q?=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/totp.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/totp.ts b/src/services/totp.ts index 66a0c7d60..cabeaae15 100644 --- a/src/services/totp.ts +++ b/src/services/totp.ts @@ -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(); }