mirror of
https://github.com/mattermost/mattermost.git
synced 2026-08-26 21:27:40 -05:00
Merge pull request #259 from nickago/MM-1683
MM-1683 Removed a vestigial wait condition from the signup process.
This commit is contained in:
@@ -587,25 +587,23 @@ PasswordPage = React.createClass({
|
||||
|
||||
var props = this.props;
|
||||
|
||||
setTimeout(function() {
|
||||
$('#sign-up-button').button('reset');
|
||||
props.state.wizard = "finished";
|
||||
props.updateParent(props.state, true);
|
||||
$('#sign-up-button').button('reset');
|
||||
props.state.wizard = "finished";
|
||||
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,
|
||||
// function(data) {
|
||||
// TeamStore.setLastName(teamSignup.team.domain);
|
||||
// UserStore.setLastEmail(teamSignup.team.email);
|
||||
// UserStore.setCurrentUser(data);
|
||||
// window.location.href = '/channels/town-square';
|
||||
// }.bind(ctl),
|
||||
// function(err) {
|
||||
// this.setState({name_error: err.message});
|
||||
// }.bind(ctl)
|
||||
// );
|
||||
}, 5000);
|
||||
// client.loginByEmail(teamSignup.team.domain, teamSignup.team.email, teamSignup.user.password,
|
||||
// function(data) {
|
||||
// TeamStore.setLastName(teamSignup.team.domain);
|
||||
// UserStore.setLastEmail(teamSignup.team.email);
|
||||
// UserStore.setCurrentUser(data);
|
||||
// window.location.href = '/channels/town-square';
|
||||
// }.bind(ctl),
|
||||
// function(err) {
|
||||
// this.setState({name_error: err.message});
|
||||
// }.bind(ctl)
|
||||
// );
|
||||
}.bind(this),
|
||||
function(err) {
|
||||
this.setState({server_error: err.message});
|
||||
|
||||
Reference in New Issue
Block a user