Merge pull request #248 from coralproject/registration-fix

Registration fix
This commit is contained in:
David Erwin
2017-01-19 16:24:49 -05:00
committed by GitHub
2 changed files with 2 additions and 4 deletions
+2 -2
View File
@@ -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))
displayName: displayName => (/^[a-zA-Z0-9_]+$/.test(displayName))
};
@@ -54,7 +54,6 @@ const SignUpContent = ({handleChange, formData, ...props}) => (
showErrors={props.showErrors}
errorMsg={props.errors.password}
onChange={handleChange}
minLength="8"
/>
{ !props.errors.password && <span className={styles.hint}> Password must be at least 8 characters. </span> }
<FormField
@@ -65,7 +64,6 @@ const SignUpContent = ({handleChange, formData, ...props}) => (
showErrors={props.showErrors}
errorMsg={props.errors.confirmPassword}
onChange={handleChange}
minLength="8"
/>
<div className={styles.action}>
{ !props.auth.isLoading && !props.auth.successSignUp && (