Blame view

imports/ui/pages/RecoverPassword.js 1.27 KB
2b1ad7917   tmcdeveloper   wip moving to Met...
1
  import React from 'react';
cac7cbc73   tmcdeveloper   4.1.0 release
2
  import { Row, Col, Alert, FormGroup, FormControl, Button } from 'react-bootstrap';
c42d4eeac   themeteorchef   handful of changes
3
  import handleRecoverPassword from '../../modules/recover-password';
2b1ad7917   tmcdeveloper   wip moving to Met...
4

3540345c5   themeteorchef   handful of fixes
5
  export default class RecoverPassword extends React.Component {
7df77f0fa   tmcdeveloper   finish wiring up ...
6
    componentDidMount() {
f0c912bf1   tmcdeveloper   add method tests ...
7
      handleRecoverPassword({ component: this });
7df77f0fa   tmcdeveloper   finish wiring up ...
8
    }
c42d4eeac   themeteorchef   handful of changes
9
10
    handleSubmit(event) {
      event.preventDefault();
7df77f0fa   tmcdeveloper   finish wiring up ...
11
12
13
    }
  
    render() {
4c9b3dfc1   themeteorchef   cleaning up
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
      return (
        <div className="RecoverPassword">
          <Row>
            <Col xs={ 12 } sm={ 6 } md={ 4 }>
              <h4 className="page-header">Recover Password</h4>
              <Alert bsStyle="info">
                Enter your email address below to receive a link to reset your password.
              </Alert>
              <form
                ref={ form => (this.recoverPasswordForm = form) }
                className="recover-password"
                onSubmit={ this.handleSubmit }
              >
                <FormGroup>
                  <FormControl
                    type="email"
                    ref="emailAddress"
                    name="emailAddress"
                    placeholder="Email Address"
                  />
                </FormGroup>
                <Button type="submit" bsStyle="success">Recover Password</Button>
              </form>
            </Col>
          </Row>
        </div>
      );
7df77f0fa   tmcdeveloper   finish wiring up ...
41
42
    }
  }