ok
This commit is contained in:
@@ -103,7 +103,8 @@ const LinktreePage = ({ user, setModal }) => {
|
||||
const response = await loginUser(username, password);
|
||||
if (response.success) {
|
||||
localStorage.setItem('auth', response.token);
|
||||
window.location.href = response.cafeId ? `/${response.cafeId}` : '/';
|
||||
console.log(response)
|
||||
window.location.href = response.cafeIdentifyName ? `/${response.cafeIdentifyName}` : '/';
|
||||
} else {
|
||||
setError(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user