Skip to content

Commit

Permalink
Revert "fix(AuthComponent): real login"
Browse files Browse the repository at this point in the history
This reverts commit 92250cd.
  • Loading branch information
vladDotH committed Nov 28, 2023
1 parent 70a5cec commit 6a576e6
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions client/src/components/routes/auth/AuthComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,12 @@ const login = ref(""),
password = ref("");
async function doLogin() {
try {
await userStore.login(login.value, login.password);
toaster.addToast({
title: "Выполнено",
body: "Вы вошли в аккаунт",
type: ToastTypes.primary,
});
router.push({ name: routeNames.Home });
}
catch (err) {
toaster.addToast({
title: "Ошибка",
body: "Неверные данные",
type: ToastTypes.danger,
});
}
// await devLogin();
toaster.addToast({
title: "Выполнено",
body: "Вы вошли в аккаунт",
type: ToastTypes.primary,
});
}
async function devLogin() {
Expand Down

0 comments on commit 6a576e6

Please sign in to comment.