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)