diff --git a/client/coral-framework/helpers/validate.js b/client/coral-framework/helpers/validate.js index 80efb1b1f..7aa4ccc72 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/SignDialog.js b/client/coral-sign-in/components/SignDialog.js index 966870293..876d1ea82 100644 --- a/client/coral-sign-in/components/SignDialog.js +++ b/client/coral-sign-in/components/SignDialog.js @@ -3,7 +3,7 @@ import {Dialog} from 'coral-ui'; import styles from './styles.css'; import SignInContent from './SignInContent'; -import SingUpContent from './SignUpContent'; +import SignUpContent from './SignUpContent'; import ForgotContent from './ForgotContent'; const SignDialog = ({open, view, handleClose, offset, ...props}) => ( @@ -17,7 +17,7 @@ const SignDialog = ({open, view, handleClose, offset, ...props}) => ( }}> × {view === 'SIGNIN' && } - {view === 'SIGNUP' && } + {view === 'SIGNUP' && } {view === 'FORGOT' && } );