fixed password length (#901)

This commit is contained in:
Apoorv Taneja 2019-03-16 03:05:48 +05:30 committed by Cassie Tarakajian
parent f8ee62a1b5
commit 3d248a0573

View file

@ -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';
} }