🐛 Checking that the password is at most 100 characters long

This commit is contained in:
Mawoka
2022-12-28 13:35:50 +01:00
parent f672a1bbb1
commit 6f08613382
@@ -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()