Commit c08c64c4 authored by Joram Wilander's avatar Joram Wilander Committed by JoramWilander
Browse files

Fix redirecting to email verification page after sign-up (#2101)

parent 531c89bf
......@@ -113,7 +113,7 @@ export default class SignupEmail extends React.Component {
this.props.actions.loginById(data.id, user.password, '').then(({error}) => {
if (error) {
if (error.id === 'api.user.login.not_verified.app_error') {
if (error.server_error_id === 'api.user.login.not_verified.app_error') {
browserHistory.push('/should_verify_email?email=' + encodeURIComponent(user.email) + '&teamname=' + encodeURIComponent(this.state.teamName));
} else {
this.setState({
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment