From f3f84961eb9ddf3dacfb3e4bf5c56504303c048f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 17 Sep 2018 12:54:23 +0200 Subject: redirects work --- app/client/auth/login.component.js | 7 ------- 1 file changed, 7 deletions(-) (limited to 'app/client/auth/login.component.js') 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 - } return (

Log in


-- cgit v1.2.3-70-g09d2