From c16cdc5f798a63dbd412e282fc9fbe7b1991c51d Mon Sep 17 00:00:00 2001 From: Michael Chadwick Date: Thu, 3 Oct 2024 15:03:52 -0700 Subject: [PATCH] added length validation for new user password --- packages/frontend/app/components/new-user.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/frontend/app/components/new-user.js b/packages/frontend/app/components/new-user.js index 8fdc46c8c8..ba2ab215a6 100644 --- a/packages/frontend/app/components/new-user.js +++ b/packages/frontend/app/components/new-user.js @@ -26,7 +26,10 @@ export default class NewUserComponent extends Component { @Length(1, 100) @NotBlank() username = null; - @tracked @NotBlank() password = null; + @tracked + @Length(5) + @NotBlank() + password = null; @tracked @Length(1, 20) phone = null; @tracked schoolId = null; @tracked primaryCohortId = null;