updated changing email in sign up flow to work properly
Этот коммит содержится в:
@@ -42,11 +42,15 @@ WelcomePage = React.createClass({
|
|||||||
state.email_error = "";
|
state.email_error = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
client.signupTeam(email, this.props.state.team.name,
|
client.signupTeam(email,
|
||||||
function(data) {
|
function(data) {
|
||||||
this.props.state.wizard = "finished";
|
if (data["follow_link"]) {
|
||||||
this.props.updateParent(this.props.state);
|
window.location.href = data["follow_link"];
|
||||||
window.location.href = "/signup_team_confirm/?email=" + encodeURI(email);
|
} else {
|
||||||
|
this.props.state.wizard = "finished";
|
||||||
|
this.props.updateParent(this.props.state);
|
||||||
|
window.location.href = "/signup_team_confirm/?email=" + encodeURIComponent(team.email);
|
||||||
|
}
|
||||||
}.bind(this),
|
}.bind(this),
|
||||||
function(err) {
|
function(err) {
|
||||||
this.state.server_error = err.message;
|
this.state.server_error = err.message;
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user