Fix password validation for creating a new user. Must be between 6 and 32 chars inclusive.

This commit is contained in:
alexweininger 2021-05-01 22:39:03 -07:00
parent 5fa1a5e661
commit e27cc0c64c

View file

@ -19,7 +19,7 @@ export async function createUser(): Promise<void> {
password: true, password: true,
prompt: "Enter user password", prompt: "Enter user password",
validateInput: (value) => { validateInput: (value) => {
if (value.length <= 6) { if (value.length < 6) {
return "Password must be at least 6 characters long."; return "Password must be at least 6 characters long.";
} }
if (value.length > 32) { if (value.length > 32) {