]> git.proxmox.com Git - pve-installer.git/commitdiff
tui: password: include minimum password length in error message
authorChristoph Heiss <c.heiss@proxmox.com>
Wed, 9 Aug 2023 13:44:21 +0000 (15:44 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 23 Aug 2023 08:19:51 +0000 (10:19 +0200)
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
proxmox-tui-installer/src/main.rs

index 83a4d6051db59d7fd315f844cf94acef86acd3f0..4782fa2d2f96a37f7f3f40c97c81af16fbb4e51a 100644 (file)
@@ -514,7 +514,7 @@ fn password_dialog(siv: &mut Cursive) -> InstallerView {
                         .unwrap();
 
                 if root_password.len() < 5 {
-                    Err("password too short")
+                    Err("password too short, must be at least 5 characters long")
                 } else if root_password != confirm_password {
                     Err("passwords do not match")
                 } else if email == "mail@example.invalid" {