diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-08-14 08:43:49 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-08-14 12:38:16 -0400 |
commit | b704e9489b21b3bec17f5c8b573a1724781ee6f7 (patch) | |
tree | 002f9fb35ce932800160bc45d91a50804bbb6594 /web/react/components/signup_user_oauth.jsx | |
parent | e27db2ed63fd3c9c686c049a9b9049a907985ecc (diff) | |
download | chat-b704e9489b21b3bec17f5c8b573a1724781ee6f7.tar.gz chat-b704e9489b21b3bec17f5c8b573a1724781ee6f7.tar.bz2 chat-b704e9489b21b3bec17f5c8b573a1724781ee6f7.zip |
added google sign-in functionality to the client, with minor model modifications
Diffstat (limited to 'web/react/components/signup_user_oauth.jsx')
-rw-r--r-- | web/react/components/signup_user_oauth.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/web/react/components/signup_user_oauth.jsx b/web/react/components/signup_user_oauth.jsx index 6322aedee..8b2800bde 100644 --- a/web/react/components/signup_user_oauth.jsx +++ b/web/react/components/signup_user_oauth.jsx @@ -33,7 +33,10 @@ module.exports = React.createClass({ client.createUser(user, "", "", function(data) { client.track('signup', 'signup_user_oauth_02'); - window.location.href = '/' + this.props.teamName + '/login/'+user.auth_service; + UserStore.setCurrentUser(data); + UserStore.setLastEmail(data.email); + + window.location.href = '/' + this.props.teamName + '/login/' + user.auth_service + '?login_hint=' + user.email; }.bind(this), function(err) { this.state.server_error = err.message; |