Removed timeout originally set on team creation

Этот коммит содержится в:
nickago
2015-07-27 14:29:49 -07:00
родитель 54265271fa
Коммит 7b776fbb78

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

@@ -587,12 +587,11 @@ PasswordPage = React.createClass({
var props = this.props; var props = this.props;
setTimeout(function() {
$('#sign-up-button').button('reset'); $('#sign-up-button').button('reset');
props.state.wizard = "finished"; props.state.wizard = "finished";
props.updateParent(props.state, true); props.updateParent(props.state, true);
window.location.href = utils.getWindowLocationOrigin() + '/' + props.state.team.name + '/login?email=' + encodeURIComponent(teamSignup.team.email); window.location.href = window.location.origin + '/' + props.state.team.name + '/login?email=' + encodeURIComponent(teamSignup.team.email);
// client.loginByEmail(teamSignup.team.domain, teamSignup.team.email, teamSignup.user.password, // client.loginByEmail(teamSignup.team.domain, teamSignup.team.email, teamSignup.user.password,
// function(data) { // function(data) {
@@ -605,7 +604,6 @@ PasswordPage = React.createClass({
// this.setState({name_error: err.message}); // this.setState({name_error: err.message});
// }.bind(ctl) // }.bind(ctl)
// ); // );
}, 5000);
}.bind(this), }.bind(this),
function(err) { function(err) {
this.setState({server_error: err.message}); this.setState({server_error: err.message});