final frontend
This commit is contained in:
1 parent
3838f3ff7a
commit
e38613ca6b
6 files changed
+466
-563
No files matched your search
@@ -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