diff --git a/client/coral-framework/helpers/validate.js b/client/coral-framework/helpers/validate.js index 7aa4ccc72..90cd650fe 100644 --- a/client/coral-framework/helpers/validate.js +++ b/client/coral-framework/helpers/validate.js @@ -1,6 +1,6 @@ export default { email: email => (/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/.test(email)), - password: pass => !(/^(?=.{8,}).*$/.test(pass)), + password: pass => /^(?=.{8,}).*$/.test(pass), confirmPassword: () => true, displayName: displayName => (/^[a-z0-9_]+$/.test(displayName)) }; diff --git a/client/coral-sign-in/components/SignUpContent.js b/client/coral-sign-in/components/SignUpContent.js index 2f9e9afe1..4144b1d2f 100644 --- a/client/coral-sign-in/components/SignUpContent.js +++ b/client/coral-sign-in/components/SignUpContent.js @@ -56,7 +56,7 @@ const SignUpContent = ({handleChange, formData, ...props}) => ( onChange={handleChange} minLength="8" /> - { !props.errors.password && Password must be at least 8 characters. } + { props.errors.password && Password must be at least 8 characters. }