aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/auth/Login.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/auth/Login.js')
-rw-r--r--src/components/auth/Login.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/auth/Login.js b/src/components/auth/Login.js
index 2cf614041..5d21f8b60 100644
--- a/src/components/auth/Login.js
+++ b/src/components/auth/Login.js
@@ -83,18 +83,18 @@ export default @observer class Login extends Component {
83 }, 83 },
84 }, this.context.intl); 84 }, this.context.intl);
85 85
86 emailField = null;
87
86 submit(e) { 88 submit(e) {
87 e.preventDefault(); 89 e.preventDefault();
88 this.form.submit({ 90 this.form.submit({
89 onSuccess: (form) => { 91 onSuccess: (form) => {
90 this.props.onSubmit(form.values()); 92 this.props.onSubmit(form.values());
91 }, 93 },
92 onError: () => {}, 94 onError: () => { },
93 }); 95 });
94 } 96 }
95 97
96 emailField = null;
97
98 render() { 98 render() {
99 const { form } = this; 99 const { form } = this;
100 const { intl } = this.context; 100 const { intl } = this.context;