From 3d248a0573c79e895dd82a7f8524be41d9f07639 Mon Sep 17 00:00:00 2001 From: Apoorv Taneja Date: Sat, 16 Mar 2019 03:05:48 +0530 Subject: [PATCH] fixed password length (#901) --- client/utils/reduxFormUtils.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/utils/reduxFormUtils.js b/client/utils/reduxFormUtils.js index 4bb74319..0f822b9b 100644 --- a/client/utils/reduxFormUtils.js +++ b/client/utils/reduxFormUtils.js @@ -64,6 +64,11 @@ export function validateSignup(formProps) { if (!formProps.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) { errors.confirmPassword = 'Please enter a password confirmation'; }