diff --git a/smart-hut/src/views/Forgot-pass-reset.js b/smart-hut/src/views/Forgot-pass-reset.js new file mode 100644 index 0000000..39496d5 --- /dev/null +++ b/smart-hut/src/views/Forgot-pass-reset.js @@ -0,0 +1,85 @@ +import React, {Component} from 'react'; +import {Button, Form, Grid, Header, Image, Icon, Message} from 'semantic-ui-react'; +//import { call } from '../client_server'; + + +export default class ChangePass extends Component { + constructor(props) { + super(props); + this.state = { + password: "", + error: { + state: false, + message: "", + } + } + } + + onChangeHandler = (event) => { + let nam = event.target.name; + let val = event.target.value; + this.setState({[nam]: val}); + }; + + checkpassword = (e) => { + if (e.target.value !== this.state.password) { + this.setState({error: { + state : true, + message : "Passwords do not match.", + }}); + } + }; + + handleChangePassword = (e) => { + + }; + + render() { + return ( + + + + +
+ Reset Password +
+
+ + + + + +
+
+
+ ) + } +} \ No newline at end of file diff --git a/smart-hut/src/views/Forgot-password.js b/smart-hut/src/views/Forgot-password.js new file mode 100644 index 0000000..b3f1e93 --- /dev/null +++ b/smart-hut/src/views/Forgot-password.js @@ -0,0 +1,67 @@ +import React, {Component} from 'react'; +import {Button, Form, Grid, Header, Image, Icon, Message} from 'semantic-ui-react'; +//import { call } from '../client_server'; + + +export default class ForgotPass extends Component { + constructor(props) { + super(props); + this.state = { + user: "", + error: { + state: false, + message: "", + } + } + } + + onChangeHandler = (event) => { + let nam = event.target.name; + let val = event.target.value; + this.setState({[nam]: val}); + }; + + handleSendEmail = (e) => { + + }; + + render() { + return ( + + + + +
+ Reset Password +
+
+ + + + +
+
+
+ ) + } +} \ No newline at end of file