feat: allow empty mail
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 10m16s

This commit is contained in:
2025-11-08 18:44:35 +01:00
parent d95c173fa8
commit 6cec8ff31d
2 changed files with 6 additions and 3 deletions

View File

@@ -9,8 +9,11 @@ export function check_validity(online_callback = () => {
axios.get(`${vite_url}/api/auth/userinfo`).then(data => {
online_callback({state: true, userinfo: data.data});
})
}else{
online_callback({state: false});
}
}).catch(() => {
console.log("=> Not authenticated");
online_callback({state: false});
})
}
@@ -32,4 +35,4 @@ export function login_redirect() {
export function logout() {
window.location.href = `${vite_url}/api/logout`;
}
}