🐛 Checking that the password is at most 100 characters long
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user