diff --git a/src/user/login-form.js b/src/user/login-form.js index 96df3b0..1c2fc5e 100644 --- a/src/user/login-form.js +++ b/src/user/login-form.js @@ -17,7 +17,7 @@ import React, { Component } from 'react'; import { Form, Button, FormGroup, FormControl, FormLabel, Col } from 'react-bootstrap'; - +import RecoverPassword from './recover-password' import AppDispatcher from '../common/app-dispatcher'; class LoginForm extends Component { @@ -27,6 +27,7 @@ class LoginForm extends Component { this.state = { username: '', password: '', + forgottenPassword: false, disableLogin: true } } @@ -55,6 +56,14 @@ class LoginForm extends Component { this.setState({ [event.target.id]: event.target.value, disableLogin }); } + openRecoverPassword(){ + this.setState({forgottenPassword: true}); + } + + closeRecoverPassword(){ + this.setState({forgottenPassword: false}); + } + render() { return (
+ ); } } diff --git a/src/user/recover-password.js b/src/user/recover-password.js new file mode 100644 index 0000000..c278b46 --- /dev/null +++ b/src/user/recover-password.js @@ -0,0 +1,72 @@ +/** + * This file is part of VILLASweb. + * + * VILLASweb is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * VILLASweb is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with VILLASweb. If not, see