Merge pull request #259 from nickago/MM-1683

MM-1683 Removed a vestigial wait condition from the signup process.
Этот коммит содержится в:
Christopher Speller
2015-07-29 12:55:31 -04:00
родитель be5470c422 2775225e0d
Коммит 9913895423

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

@@ -587,25 +587,23 @@ 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 = utils.getWindowLocationOrigin() + '/' + 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) {
// TeamStore.setLastName(teamSignup.team.domain); // TeamStore.setLastName(teamSignup.team.domain);
// UserStore.setLastEmail(teamSignup.team.email); // UserStore.setLastEmail(teamSignup.team.email);
// UserStore.setCurrentUser(data); // UserStore.setCurrentUser(data);
// window.location.href = '/channels/town-square'; // window.location.href = '/channels/town-square';
// }.bind(ctl), // }.bind(ctl),
// function(err) { // function(err) {
// 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});