diff options
Diffstat (limited to 'src/components/auth')
-rw-r--r-- | src/components/auth/Invite.js | 4 | ||||
-rw-r--r-- | src/components/auth/Login.js | 10 |
2 files changed, 3 insertions, 11 deletions
diff --git a/src/components/auth/Invite.js b/src/components/auth/Invite.js index f23417870..dd71c2450 100644 --- a/src/components/auth/Invite.js +++ b/src/components/auth/Invite.js | |||
@@ -125,8 +125,8 @@ class Invite extends Component { | |||
125 | .some(emailValue => emailValue.trim() !== ''); | 125 | .some(emailValue => emailValue.trim() !== ''); |
126 | 126 | ||
127 | const sendButtonClassName = classnames({ | 127 | const sendButtonClassName = classnames({ |
128 | 'auth__button': true, | 128 | auth__button: true, |
129 | 'invite__embed--button': embed | 129 | 'invite__embed--button': embed, |
130 | }); | 130 | }); |
131 | 131 | ||
132 | const renderForm = ( | 132 | const renderForm = ( |
diff --git a/src/components/auth/Login.js b/src/components/auth/Login.js index 956205258..0c327d67e 100644 --- a/src/components/auth/Login.js +++ b/src/components/auth/Login.js | |||
@@ -105,8 +105,6 @@ class Login extends Component { | |||
105 | this.props.intl, | 105 | this.props.intl, |
106 | ); | 106 | ); |
107 | 107 | ||
108 | emailField = null; | ||
109 | |||
110 | submit(e) { | 108 | submit(e) { |
111 | e.preventDefault(); | 109 | e.preventDefault(); |
112 | this.form.submit({ | 110 | this.form.submit({ |
@@ -155,13 +153,7 @@ class Login extends Component { | |||
155 | {intl.formatMessage(messages.serverLogout)} | 153 | {intl.formatMessage(messages.serverLogout)} |
156 | </p> | 154 | </p> |
157 | )} | 155 | )} |
158 | <Input | 156 | <Input field={form.$('email')} focus /> |
159 | field={form.$('email')} | ||
160 | ref={element => { | ||
161 | this.emailField = element; | ||
162 | }} | ||
163 | focus | ||
164 | /> | ||
165 | <Input field={form.$('password')} showPasswordToggle /> | 157 | <Input field={form.$('password')} showPasswordToggle /> |
166 | {error.code === 'invalid-credentials' && ( | 158 | {error.code === 'invalid-credentials' && ( |
167 | <> | 159 | <> |