updated changing email in sign up flow to work properly

Этот коммит содержится в:
JoramWilander
2015-07-28 11:49:45 -04:00
родитель 0bfc769b4d
Коммит 9512330241

Просмотреть файл

@@ -42,11 +42,15 @@ WelcomePage = React.createClass({
state.email_error = "";
}
client.signupTeam(email, this.props.state.team.name,
client.signupTeam(email,
function(data) {
this.props.state.wizard = "finished";
this.props.updateParent(this.props.state);
window.location.href = "/signup_team_confirm/?email=" + encodeURI(email);
if (data["follow_link"]) {
window.location.href = data["follow_link"];
} else {
this.props.state.wizard = "finished";
this.props.updateParent(this.props.state);
window.location.href = "/signup_team_confirm/?email=" + encodeURIComponent(team.email);
}
}.bind(this),
function(err) {
this.state.server_error = err.message;