From c217ccd347f815ffe634cf4c9b75e1847c91a1e1 Mon Sep 17 00:00:00 2001 From: Jin <22962980+JYC333@users.noreply.github.com> Date: Fri, 28 Mar 2025 03:04:58 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20remove=20totp=20from=20c?= =?UTF-8?q?onfig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/config.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/services/config.ts b/src/services/config.ts index d92c68c4a..99704e0cf 100644 --- a/src/services/config.ts +++ b/src/services/config.ts @@ -1,5 +1,3 @@ -"use strict"; - import ini from "ini"; import fs from "fs"; import dataDir from "./data_dir.js"; @@ -42,9 +40,6 @@ export interface TriliumConfig { syncProxy: string; }; MultiFactorAuthentication: { - totpEnabled: boolean; - totpSecret: string; - ssoEnabled: boolean; oauthBaseUrl: string; oauthClientId: string; oauthClientSecret: string; @@ -109,15 +104,6 @@ const config: TriliumConfig = { }, MultiFactorAuthentication: { - totpEnabled: - envToBoolean(process.env.TRILIUM_TOTP_ENABLED) || iniConfig?.MultiFactorAuthentication?.totpEnabled || false, - - totpSecret: - process.env.TRILIUM_TOTP_SECRET || iniConfig?.MultiFactorAuthentication?.totpSecret || "", - - ssoEnabled: - envToBoolean(process.env.TRILIUM_SSO_ENABLED) || iniConfig?.MultiFactorAuthentication?.ssoEnabled || false, - oauthBaseUrl: process.env.TRILIUM_OAUTH_BASE_URL || iniConfig?.MultiFactorAuthentication?.oauthBaseUrl || "",