From 431cf7c3ed22540edc1daaad261c66999ae47772 Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Mon, 4 Apr 2016 12:50:50 -0400
Subject: Fixing signup pages not autologging in. Fixing enter key on signup
 complete.

---
 webapp/components/signup_user_complete.jsx | 66 ++++++++++++++++--------------
 1 file changed, 36 insertions(+), 30 deletions(-)

(limited to 'webapp/components/signup_user_complete.jsx')

diff --git a/webapp/components/signup_user_complete.jsx b/webapp/components/signup_user_complete.jsx
index e9f9d9d88..629ac4a0a 100644
--- a/webapp/components/signup_user_complete.jsx
+++ b/webapp/components/signup_user_complete.jsx
@@ -176,7 +176,11 @@ class SignupUserComplete extends React.Component {
             () => {
                 Client.track('signup', 'signup_user_02_complete');
 
-                Client.loginByEmail(this.state.teamName, user.email, user.password,
+                Client.loginByEmail(
+                    this.state.teamName,
+                    user.email,
+                    user.password,
+                    '', // No MFA Token
                     () => {
                         UserStore.setLastEmail(user.email);
                         if (this.state.hash > 0) {
@@ -482,36 +486,38 @@ class SignupUserComplete extends React.Component {
                 <div className='col-sm-12'>
                     <div className='signup-team__container padding--less'>
                         <div>
-                            <img
-                                className='signup-team-logo'
-                                src={logoImage}
-                            />
-                            <h5 className='margin--less'>
-                                <FormattedMessage
-                                    id='signup_user_completed.welcome'
-                                    defaultMessage='Welcome to:'
-                                />
-                            </h5>
-                            <h2 className='signup-team__name'>{this.state.teamName}</h2>
-                            <h2 className='signup-team__subdomain'>
-                                <FormattedMessage
-                                    id='signup_user_completed.onSite'
-                                    defaultMessage='on {siteName}'
-                                    values={{
-                                        siteName: global.window.mm_config.SiteName
-                                    }}
-                                />
-                            </h2>
-                            <h4 className='color--light'>
-                                <FormattedMessage
-                                    id='signup_user_completed.lets'
-                                    defaultMessage="Let's create your account"
+                            <form>
+                                <img
+                                    className='signup-team-logo'
+                                    src={logoImage}
                                 />
-                            </h4>
-                            {signupMessage}
-                            {ldapSignup}
-                            {emailSignup}
-                            {serverError}
+                                <h5 className='margin--less'>
+                                    <FormattedMessage
+                                        id='signup_user_completed.welcome'
+                                        defaultMessage='Welcome to:'
+                                    />
+                                </h5>
+                                <h2 className='signup-team__name'>{this.state.teamName}</h2>
+                                <h2 className='signup-team__subdomain'>
+                                    <FormattedMessage
+                                        id='signup_user_completed.onSite'
+                                        defaultMessage='on {siteName}'
+                                        values={{
+                                            siteName: global.window.mm_config.SiteName
+                                        }}
+                                    />
+                                </h2>
+                                <h4 className='color--light'>
+                                    <FormattedMessage
+                                        id='signup_user_completed.lets'
+                                        defaultMessage="Let's create your account"
+                                    />
+                                </h4>
+                                {signupMessage}
+                                {ldapSignup}
+                                {emailSignup}
+                                {serverError}
+                            </form>
                         </div>
                     </div>
                 </div>
-- 
cgit v1.2.3-1-g7c22

