diff -r 469da13402e2 -r 2c2a9c8dc216 client/src/components/Login.js --- a/client/src/components/Login.js Mon Jun 26 17:40:28 2017 +0200 +++ b/client/src/components/Login.js Mon Jun 26 17:50:24 2017 +0200 @@ -15,6 +15,12 @@ this.props.authActions.loginSubmit(username, password); } + submit = (e) => { + e.preventDefault(); + + this.login(); + } + onClickRegister = (e) => { e.preventDefault(); this.props.history.push('/register'); @@ -56,7 +62,7 @@ -
+ Username { this.username = ref; }} /> @@ -68,7 +74,7 @@ { this.renderErrorMessage(errorMessages, 'password') } { this.renderNonFieldErrors(errorMessages) } - +