From e27cc0c64ca97ba826fafb7bf5dba255647d365b Mon Sep 17 00:00:00 2001 From: alexweininger Date: Sat, 1 May 2021 22:39:03 -0700 Subject: [PATCH] Fix password validation for creating a new user. Must be between 6 and 32 chars inclusive. --- src/commands/users/createUser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/users/createUser.ts b/src/commands/users/createUser.ts index 38fc112..cee4491 100644 --- a/src/commands/users/createUser.ts +++ b/src/commands/users/createUser.ts @@ -19,7 +19,7 @@ export async function createUser(): Promise { password: true, prompt: "Enter user password", validateInput: (value) => { - if (value.length <= 6) { + if (value.length < 6) { return "Password must be at least 6 characters long."; } if (value.length > 32) {