From 130c99021c617bcae48dbf2e1d22ff2e0a09d5e8 Mon Sep 17 00:00:00 2001 From: Eduardo Quiros Date: Wed, 31 Aug 2022 20:38:25 -0600 Subject: [PATCH] add initial allfetch --- web-ui/web-react/src/components/LogInUser.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/web-ui/web-react/src/components/LogInUser.js b/web-ui/web-react/src/components/LogInUser.js index c58e3afa..9a2b78e6 100644 --- a/web-ui/web-react/src/components/LogInUser.js +++ b/web-ui/web-react/src/components/LogInUser.js @@ -124,7 +124,19 @@ class LogInUser extends Component { }; resetPassword = () => { - this.props.showPwdResetDialog = true; + const data = { + email: this.state.form.email, + }; + const tenant = fetch('http://localhost:4000/user/allUsers', + { method: 'GET' }) + .then((response) => response.json()) + .then((response) => response.message) + .then((response) => { + response = response.filter((value) => value.email === data.email) + }).catch((error) => { + console.log(error); + }); + console.log(tenant); } pwdResetDialogFooter = (