Blame view
imports/client/views/org/enter/ResetPassword.js
1.78 KB
cc8fd8a94
|
1 2 3 4 5 6 7 8 9 10 11 12 13 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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
import React from 'react'; import { Row, Col, Alert, FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap'; import handleResetPassword from './module/reset-password'; export default class ResetPassword extends React.Component { componentDidMount() { handleResetPassword({ component: this, token: this.props.params.token }); } handleSubmit(event) { event.preventDefault(); } render() { return ( <div className="ResetPassword"> <Row> <Col xs={ 12 } sm={ 6 } md={ 4 }> <h4 className="page-header">Reset Password</h4> <Alert bsStyle="info"> To reset your password, enter a new one below. You will be logged in with your new password. </Alert> <form ref={ form => (this.resetPasswordForm = form) } className="reset-password" onSubmit={ this.handleSubmit } > <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> <Button type="submit" bsStyle="success">Reset Password & Login</Button> </form> </Col> </Row> </div> ); } } ResetPassword.propTypes = { params: React.PropTypes.object, }; |