diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-09-17 12:54:23 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-09-17 12:54:23 +0200 |
| commit | f3f84961eb9ddf3dacfb3e4bf5c56504303c048f (patch) | |
| tree | 7fe27edce878ca6bd11ebe163c034311d57f936f /app/client/auth/login.component.js | |
| parent | 15e5df27774fef8d976c74b6ec7bcf8f878e5834 (diff) | |
redirects work
Diffstat (limited to 'app/client/auth/login.component.js')
| -rw-r--r-- | app/client/auth/login.component.js | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/app/client/auth/login.component.js b/app/client/auth/login.component.js index 2ef01a6..1123f75 100644 --- a/app/client/auth/login.component.js +++ b/app/client/auth/login.component.js @@ -30,13 +30,6 @@ class Login extends Component { this.props.actions.login(this.state.username, this.state.password) } render(){ - if (this.props.auth.isAuthenticated) { - let { returnTo } = this.props.auth - if (!returnTo || returnTo.match(/(login|logout|signup)/i)) { - returnTo = '/' - } - return <Redirect to={returnTo} /> - } return ( <form onSubmit={this.handleSubmit}> <h1>Log in</h1><br /> |
