add initial allfetch

This commit is contained in:
Eduardo Quiros 2022-08-31 20:38:25 -06:00
parent 6ea050fe0b
commit 130c99021c
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
1 changed files with 13 additions and 1 deletions

View File

@ -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 = (