Adding min setup password length to the docs. Fixes #1989 (#1990)

upgrade_deps_10
Dessalines 2021-12-12 11:42:24 -05:00 committed by GitHub
parent c6ac606f60
commit 161d41999d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -83,8 +83,8 @@
setup: { setup: {
# Username for the admin user # Username for the admin user
admin_username: "admin" admin_username: "admin"
# Password for the admin user # Password for the admin user. It must be at least 10 characters.
admin_password: "my_passwd" admin_password: "my_passwd_longer_than_ten_characters"
# Name of the site (can be changed later) # Name of the site (can be changed later)
site_name: "My Lemmy Instance" site_name: "My Lemmy Instance"
# Email for the admin user (optional, can be omitted and set later through the website) # Email for the admin user (optional, can be omitted and set later through the website)

View File

@ -165,8 +165,8 @@ pub struct SetupConfig {
/// Username for the admin user /// Username for the admin user
#[doku(example = "admin")] #[doku(example = "admin")]
pub admin_username: String, pub admin_username: String,
/// Password for the admin user /// Password for the admin user. It must be at least 10 characters.
#[doku(example = "my_passwd")] #[doku(example = "my_passwd_longer_than_ten_characters")]
pub admin_password: String, pub admin_password: String,
/// Name of the site (can be changed later) /// Name of the site (can be changed later)
#[doku(example = "My Lemmy Instance")] #[doku(example = "My Lemmy Instance")]