Sample API call
This commit is contained in:
@@ -30,8 +30,10 @@ export default function Login() {
|
||||
setPassword(e.target.value);
|
||||
};
|
||||
const navigate = useNavigate();
|
||||
const userApi = new usersService();
|
||||
const doLogin = () => {
|
||||
if (email !== "" && password !== "") {
|
||||
userApi.logInUser("support@mermsemr.com"); // just for a test
|
||||
if (email === "support@mermsemr.com") {
|
||||
localStorage.setItem("email", `${email}`);
|
||||
setLoginLoading(true);
|
||||
|
||||
Reference in New Issue
Block a user