Blame view

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

3540345c5   themeteorchef   handful of fixes
5
  export default class ResetPassword extends React.Component {
7df77f0fa   tmcdeveloper   finish wiring up ...
6
    componentDidMount() {
3540345c5   themeteorchef   handful of fixes
7
      handleResetPassword({ component: this, token: this.props.params.token });
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() {
3540345c5   themeteorchef   handful of fixes
14
      return (<Row>
7df77f0fa   tmcdeveloper   finish wiring up ...
15
16
        <Col xs={ 12 } sm={ 6 } md={ 4 }>
          <h4 className="page-header">Reset Password</h4>
f0c912bf1   tmcdeveloper   add method tests ...
17
18
19
20
          <Alert bsStyle="info">
            To reset your password, enter a new one below. You will be logged in
  with your new password.
          </Alert>
7df77f0fa   tmcdeveloper   finish wiring up ...
21
          <form ref="resetPassword" className="reset-password" onSubmit={ this.handleSubmit }>
cac7cbc73   tmcdeveloper   4.1.0 release
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
            <FormGroup>
              <ControlLabel>New Password</ControlLabel>
              <FormControl
                type="password"
                ref="newPassword"
                name="newPassword"
                placeholder="New Password"
              />
            </FormGroup>
            <FormGroup>
              <ControlLabel>Repeat New Password</ControlLabel>
              <FormControl
                type="password"
                ref="repeatNewPassword"
                name="repeatNewPassword"
                placeholder="Repeat New Password"
              />
            </FormGroup>
7df77f0fa   tmcdeveloper   finish wiring up ...
40
41
42
            <Button type="submit" bsStyle="success">Reset Password &amp; Login</Button>
          </form>
        </Col>
3540345c5   themeteorchef   handful of fixes
43
      </Row>);
7df77f0fa   tmcdeveloper   finish wiring up ...
44
45
    }
  }
76dd62c7b   tmcdeveloper   fix eslint error ...
46
47
48
49
  
  ResetPassword.propTypes = {
    params: React.PropTypes.object,
  };