diff options
Diffstat (limited to 'src/components/auth/Login.js')
-rw-r--r-- | src/components/auth/Login.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/components/auth/Login.js b/src/components/auth/Login.js index f465b35a5..5d21f8b60 100644 --- a/src/components/auth/Login.js +++ b/src/components/auth/Login.js | |||
@@ -11,11 +11,8 @@ import Button from '../ui/Button'; | |||
11 | import Link from '../ui/Link'; | 11 | import Link from '../ui/Link'; |
12 | import Infobox from '../ui/Infobox'; | 12 | import Infobox from '../ui/Infobox'; |
13 | 13 | ||
14 | |||
15 | import { globalError as globalErrorPropType } from '../../prop-types'; | 14 | import { globalError as globalErrorPropType } from '../../prop-types'; |
16 | 15 | ||
17 | // import Appear from '../ui/effects/Appear'; | ||
18 | |||
19 | const messages = defineMessages({ | 16 | const messages = defineMessages({ |
20 | headline: { | 17 | headline: { |
21 | id: 'login.headline', | 18 | id: 'login.headline', |
@@ -86,18 +83,18 @@ export default @observer class Login extends Component { | |||
86 | }, | 83 | }, |
87 | }, this.context.intl); | 84 | }, this.context.intl); |
88 | 85 | ||
86 | emailField = null; | ||
87 | |||
89 | submit(e) { | 88 | submit(e) { |
90 | e.preventDefault(); | 89 | e.preventDefault(); |
91 | this.form.submit({ | 90 | this.form.submit({ |
92 | onSuccess: (form) => { | 91 | onSuccess: (form) => { |
93 | this.props.onSubmit(form.values()); | 92 | this.props.onSubmit(form.values()); |
94 | }, | 93 | }, |
95 | onError: () => {}, | 94 | onError: () => { }, |
96 | }); | 95 | }); |
97 | } | 96 | } |
98 | 97 | ||
99 | emailField = null; | ||
100 | |||
101 | render() { | 98 | render() { |
102 | const { form } = this; | 99 | const { form } = this; |
103 | const { intl } = this.context; | 100 | const { intl } = this.context; |