fixed password length (#901)
This commit is contained in:
parent
f8ee62a1b5
commit
3d248a0573
1 changed files with 5 additions and 0 deletions
|
@ -64,6 +64,11 @@ export function validateSignup(formProps) {
|
||||||
if (!formProps.password) {
|
if (!formProps.password) {
|
||||||
errors.password = 'Please enter a password';
|
errors.password = 'Please enter a password';
|
||||||
}
|
}
|
||||||
|
if (formProps.password) {
|
||||||
|
if (formProps.password.length < 6) {
|
||||||
|
errors.password = 'Password must be at least 6 characters';
|
||||||
|
}
|
||||||
|
}
|
||||||
if (!formProps.confirmPassword) {
|
if (!formProps.confirmPassword) {
|
||||||
errors.confirmPassword = 'Please enter a password confirmation';
|
errors.confirmPassword = 'Please enter a password confirmation';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue