From 50b7322ff380425d2023e12b0a0c1145536667d6 Mon Sep 17 00:00:00 2001 From: Nutomic Date: Wed, 4 Oct 2023 15:09:25 +0200 Subject: [PATCH] Mention max length for site name in config (fixes #3006) (#4010) * Mention max length for site name in config (fixes #3006) * ci --- config/defaults.hjson | 4 ++-- crates/utils/src/settings/structs.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/defaults.hjson b/config/defaults.hjson index 398549caa..4b616f677 100644 --- a/config/defaults.hjson +++ b/config/defaults.hjson @@ -63,9 +63,9 @@ setup: { # Username for the admin user admin_username: "admin" - # Password for the admin user. It must be at least 10 characters. + # Password for the admin user. It must be between 10 and 60 characters. admin_password: "tf6HHDS4RolWfFhk4Rq9" - # Name of the site (can be changed later) + # Name of the site, can be changed later. Maximum 20 characters. site_name: "My Lemmy Instance" # Email for the admin user (optional, can be omitted and set later through the website) admin_email: "user@example.com" diff --git a/crates/utils/src/settings/structs.rs b/crates/utils/src/settings/structs.rs index 213e74c4e..aa3f852ce 100644 --- a/crates/utils/src/settings/structs.rs +++ b/crates/utils/src/settings/structs.rs @@ -154,10 +154,10 @@ pub struct SetupConfig { /// Username for the admin user #[doku(example = "admin")] pub admin_username: String, - /// Password for the admin user. It must be at least 10 characters. + /// Password for the admin user. It must be between 10 and 60 characters. #[doku(example = "tf6HHDS4RolWfFhk4Rq9")] pub admin_password: String, - /// Name of the site (can be changed later) + /// Name of the site, can be changed later. Maximum 20 characters. #[doku(example = "My Lemmy Instance")] pub site_name: String, /// Email for the admin user (optional, can be omitted and set later through the website)