summaryrefslogtreecommitdiffstats
path: root/web/react/components/team_signup_password_page.jsx
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-10-16 09:10:54 -0700
committer=Corey Hulen <corey@hulen.com>2015-10-16 09:10:54 -0700
commit6a1755d2e32c3f3bcaa67c33f32cb5eb5ab76ea2 (patch)
tree5ebe7ed520eddd8e13e75a4e2ca43e3bacda1f2b /web/react/components/team_signup_password_page.jsx
parentc890e21cefe135a74a4a7235b704e7af95decc5c (diff)
downloadchat-6a1755d2e32c3f3bcaa67c33f32cb5eb5ab76ea2.tar.gz
chat-6a1755d2e32c3f3bcaa67c33f32cb5eb5ab76ea2.tar.bz2
chat-6a1755d2e32c3f3bcaa67c33f32cb5eb5ab76ea2.zip
Inital support for multi-tab loging
Diffstat (limited to 'web/react/components/team_signup_password_page.jsx')
-rw-r--r--web/react/components/team_signup_password_page.jsx19
1 files changed, 9 insertions, 10 deletions
diff --git a/web/react/components/team_signup_password_page.jsx b/web/react/components/team_signup_password_page.jsx
index daa898b53..67fd686bc 100644
--- a/web/react/components/team_signup_password_page.jsx
+++ b/web/react/components/team_signup_password_page.jsx
@@ -36,15 +36,14 @@ export default class TeamSignupPasswordPage extends React.Component {
delete teamSignup.wizard;
Client.createTeamFromSignup(teamSignup,
- function success() {
+ () => {
Client.track('signup', 'signup_team_08_complete');
var props = this.props;
Client.loginByEmail(teamSignup.team.name, teamSignup.team.email, teamSignup.user.password,
- function loginSuccess(data) {
+ () => {
UserStore.setLastEmail(teamSignup.team.email);
- UserStore.setCurrentUser(data);
if (this.props.hash > 0) {
BrowserStore.setGlobalItem(this.props.hash, JSON.stringify({wizard: 'finished'}));
}
@@ -54,21 +53,21 @@ export default class TeamSignupPasswordPage extends React.Component {
props.updateParent(props.state, true);
window.location.href = '/' + teamSignup.team.name + '/channels/town-square';
- }.bind(this),
- function loginFail(err) {
+ },
+ (err) => {
if (err.message === 'Login failed because email address has not been verified') {
window.location.href = '/verify_email?email=' + encodeURIComponent(teamSignup.team.email) + '&teamname=' + encodeURIComponent(teamSignup.team.name);
} else {
this.setState({serverError: err.message});
$('#finish-button').button('reset');
}
- }.bind(this)
+ }
);
- }.bind(this),
- function error(err) {
+ },
+ (err) => {
this.setState({serverError: err.message});
$('#finish-button').button('reset');
- }.bind(this)
+ }
);
}
render() {
@@ -129,7 +128,7 @@ export default class TeamSignupPasswordPage extends React.Component {
Finish
</button>
</div>
- <p>By proceeding to create your account and use {global.window.config.SiteName}, you agree to our <a href='/static/help/terms.html'>Terms of Service</a> and <a href='/static/help/privacy.html'>Privacy Policy</a>. If you do not agree, you cannot use {global.window.config.SiteName}.</p>
+ <p>By proceeding to create your account and use {global.window.mm_config.SiteName}, you agree to our <a href='/static/help/terms.html'>Terms of Service</a> and <a href='/static/help/privacy.html'>Privacy Policy</a>. If you do not agree, you cannot use {global.window.mm_config.SiteName}.</p>
<div className='margin--extra'>
<a
href='#'