mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-21 22:29:39 +02:00
Api refactoring fixes (#372)
* Fix JS error when logging in with bad credentials * Remove duplicate error message if bad credentials Error is already nicely displayed in LoginForm
This commit is contained in:
parent
1dc051f562
commit
d2e56cf233
2 changed files with 3 additions and 4 deletions
|
@ -98,11 +98,10 @@ export default {
|
|||
this.clear();
|
||||
this.$store.commit("setToken", response.data.access_token);
|
||||
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;
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue