mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
Fix JS error when logging in with bad credentials
This commit is contained in:
parent
1dc051f562
commit
e222d0ca56
1 changed files with 2 additions and 3 deletions
|
@ -98,11 +98,10 @@ export default {
|
||||||
this.clear();
|
this.clear();
|
||||||
this.$store.commit("setToken", response.data.access_token);
|
this.$store.commit("setToken", response.data.access_token);
|
||||||
this.$emit("logged-in");
|
this.$emit("logged-in");
|
||||||
|
let user = await api.users.self();
|
||||||
|
this.$store.commit("setUserData", user);
|
||||||
}
|
}
|
||||||
|
|
||||||
let user = await api.users.self();
|
|
||||||
this.$store.commit("setUserData", user);
|
|
||||||
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue