Blame view
imports/ui/pages/RecoverPassword.js
1.05 KB
2b1ad7917
|
1 |
import React from 'react'; |
cac7cbc73
|
2 |
import { Row, Col, Alert, FormGroup, FormControl, Button } from 'react-bootstrap'; |
7df77f0fa
|
3 |
import { handleRecoverPassword } from '../../modules/recover-password'; |
2b1ad7917
|
4 |
|
3540345c5
|
5 |
export default class RecoverPassword extends React.Component { |
7df77f0fa
|
6 |
componentDidMount() { |
f0c912bf1
|
7 |
handleRecoverPassword({ component: this }); |
7df77f0fa
|
8 |
} |
3540345c5
|
9 10 |
handleSubmit() { this.preventDefault(); |
7df77f0fa
|
11 12 13 |
} render() { |
3540345c5
|
14 |
return (<Row> |
7df77f0fa
|
15 16 |
<Col xs={ 12 } sm={ 6 } md={ 4 }> <h4 className="page-header">Recover Password</h4> |
f0c912bf1
|
17 18 19 |
<Alert bsStyle="info"> Enter your email address below to receive a link to reset your password. </Alert> |
7df77f0fa
|
20 |
<form ref="recoverPassword" className="recover-password" onSubmit={ this.handleSubmit }> |
cac7cbc73
|
21 22 23 24 25 26 27 28 29 |
<FormGroup> <FormControl type="email" ref="emailAddress" name="emailAddress" placeholder="Email Address" /> </FormGroup> <Button type="submit" bsStyle="success">Recover Password</Button> |
7df77f0fa
|
30 31 |
</form> </Col> |
3540345c5
|
32 |
</Row>); |
7df77f0fa
|
33 34 |
} } |