From 6f08613382ada84647c9eee0f9a024ea4d218417 Mon Sep 17 00:00:00 2001 From: Mawoka Date: Wed, 28 Dec 2022 13:35:50 +0100 Subject: [PATCH] :bug: Checking that the password is at most 100 characters long --- frontend/src/routes/account/register/+page.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/routes/account/register/+page.svelte b/frontend/src/routes/account/register/+page.svelte index 535607a..a2ee02a 100644 --- a/frontend/src/routes/account/register/+page.svelte +++ b/frontend/src/routes/account/register/+page.svelte @@ -18,7 +18,11 @@ const registerSchema = yup.object({ email: yup.string().email('Email must be valid!').required(), - password1: yup.string().required().min(8, 'Password must be at least 8 characters long!'), + password1: yup + .string() + .required() + .min(8, 'Password must be at least 8 characters long!') + .max(100, 'Password must be at most 100 characters long!'), password2: yup .string() .required()