final frontend

This commit is contained in:
Edd
2026-01-23 20:04:46 +00:00
parent 3838f3ff7a
commit e38613ca6b
6 changed files with 466 additions and 563 deletions
-2
View File
@@ -91,7 +91,6 @@ async function handleLogin() {
body: loginFormData,
onResponse({ response }) {
if (response.status === 200) {
console.log(response)
token.value = response._data.token;
user.value = response._data.user;
if (response._data.user.mustChangePassword === true) {
@@ -102,7 +101,6 @@ async function handleLogin() {
}
},
onResponseError({ response }) {
console.log(response.status)
if (response.status === 401) {
globalError.value = "Invalid email or password.";
} else {