fix(passkey): 加强无OTP注册PassKey的逻辑判断

This commit is contained in:
PKC278
2026-01-20 19:37:58 +08:00
parent 3a782bc69c
commit c1d759f3f3

View File

@@ -47,7 +47,7 @@ const passkeyName = ref('')
// PassKey challenge
const passkeyChallenge = ref('')
const allowPasskeyWithoutOtp = computed(() => !!globalSettingsStore.get('PASSKEY_ALLOW_REGISTER_WITHOUT_OTP'))
const allowPasskeyWithoutOtp = computed(() => globalSettingsStore.get('PASSKEY_ALLOW_REGISTER_WITHOUT_OTP') === true)
const canRegisterPasskey = computed(() => props.isOtp || allowPasskeyWithoutOtp.value)
// 格式化日期