From 3051124936f3d74048746c60f130a7840f490844 Mon Sep 17 00:00:00 2001 From: ljf Date: Tue, 3 Nov 2020 21:38:15 +0100 Subject: [PATCH] [enh] New config panel --- config_panel.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config_panel.toml b/config_panel.toml index d1b143f..406b842 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -11,14 +11,18 @@ name = "Main configuration" ask = "Here you can display a warning to user." type = "warning" - [main.config_file.outgoing_email] + [main.config_file.from_email] ask = "Outgoing email From" type = "string" help = "Email from which comes email from this app" + pattern = "^[^@]+@[^@]+$" + source = "__FINALPATH__/conf/config.php" [main.config_file.expiration] ask = "Default expiration" type = "date" + pattern = "^\d\d\d\d-\d\d-\d\d$" + source = "__FINALPATH__/conf/config.php" [main.config_file.logo] ask = "Outgoing email From" @@ -48,7 +52,7 @@ name = "Main configuration" [advanced] name = "Advanced configuration" - [manual.dns] + [advanced.dns] name = "DNS" [manual.dns.dns0]