final frontend
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user