From abd703981f849ac9ca9bfb6e702880d0a36546bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Fra=C3=9F?= Date: Mon, 25 Aug 2025 20:40:56 +0000 Subject: [PATCH] [del] conf:settings.misc --- misc/conf.example.json | 5 ----- source/conf.ts | 12 ------------ source/test/data.json | 3 --- 3 files changed, 20 deletions(-) diff --git a/misc/conf.example.json b/misc/conf.example.json index 74eaf5b..39269aa 100644 --- a/misc/conf.example.json +++ b/misc/conf.example.json @@ -44,11 +44,6 @@ "name": "Example Orginsation", "domain": "example.org" }, - "misc": { - "prefix_for_veiled_email_addresses": "member-", - "facultative_membership_number": true, - "auto_register": true - }, "password_policy": { "minimum_length": 4, "maximum_length": 12, diff --git a/source/conf.ts b/source/conf.ts index 48c69b9..004e4f5 100644 --- a/source/conf.ts +++ b/source/conf.ts @@ -149,11 +149,6 @@ namespace _espe.conf name : string; domain : string; }; - misc : { - prefix_for_veiled_email_addresses : string; - facultative_membership_number : boolean; - auto_register : boolean; - }; password_policy : { minimum_length : (null | int); maximum_length : (null | int); @@ -380,13 +375,6 @@ namespace _espe.conf "name": ((node_settings["organisation"] ?? {})["name"] ?? "Example Orginsation"), // TODO: mandatory? "domain": ((node_settings["organisation"] ?? {})["domain"] ?? "example.org"), // TODO: mandatory? }, - "misc": ( - ((node_settings_misc) => ({ - "prefix_for_veiled_email_addresses": (node_settings_misc["prefix_for_veiled_email_addresses"] ?? "member-"), - "facultative_membership_number": (node_settings_misc["facultative_membership_number"] ?? false), - "auto_register": (node_settings_misc["auto_register"] ?? false), - })) (node_settings["misc"] ?? {}) - ), "password_policy": ( ((node_settings_password_policy) => ({ "minimum_length": ( diff --git a/source/test/data.json b/source/test/data.json index c4dc97b..c941bf3 100644 --- a/source/test/data.json +++ b/source/test/data.json @@ -235,9 +235,6 @@ "settings": { "organisation": { "domain": "testdomain.org" - }, - "misc": { - "prefix_for_veiled_email_addresses": "wicht-" } } },