From 161d41999de093753a995247419ea8908fc653d0 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 12 Dec 2021 11:42:24 -0500 Subject: [PATCH] Adding min setup password length to the docs. Fixes #1989 (#1990) --- 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 14c1dce0..1126fef3 100644 --- a/config/defaults.hjson +++ b/config/defaults.hjson @@ -83,8 +83,8 @@ setup: { # Username for the admin user admin_username: "admin" - # Password for the admin user - admin_password: "my_passwd" + # Password for the admin user. It must be at least 10 characters. + admin_password: "my_passwd_longer_than_ten_characters" # Name of the site (can be changed later) site_name: "My Lemmy Instance" # Email for the admin user (optional, can be omitted and set later through the website) diff --git a/crates/utils/src/settings/structs.rs b/crates/utils/src/settings/structs.rs index 6a20386e..ae7bd544 100644 --- a/crates/utils/src/settings/structs.rs +++ b/crates/utils/src/settings/structs.rs @@ -165,8 +165,8 @@ pub struct SetupConfig { /// Username for the admin user #[doku(example = "admin")] pub admin_username: String, - /// Password for the admin user - #[doku(example = "my_passwd")] + /// Password for the admin user. It must be at least 10 characters. + #[doku(example = "my_passwd_longer_than_ten_characters")] pub admin_password: String, /// Name of the site (can be changed later) #[doku(example = "My Lemmy Instance")] -- 2.44.1