From c8ee312310d05a1e81907159259918bd3f1d80ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Mon, 16 Mar 2020 12:50:17 +0100 Subject: [PATCH] Redirect to admin instead of update --- src/components/LoginPage.vue | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/components/LoginPage.vue b/src/components/LoginPage.vue index a5f950c..3a13d4d 100644 --- a/src/components/LoginPage.vue +++ b/src/components/LoginPage.vue @@ -4,11 +4,13 @@
- +
@@ -27,16 +29,16 @@ import { login } from "@/api"; export default { data() { return { - username: undefined, + username: undefined, password: undefined, error: undefined - } + }; }, methods: { submit() { login(this.username, this.password) - .then(resp => this.$router.push("update")) - .catch(error => this.error = error.message || error) + .then(resp => this.$router.push("admin")) + .catch(error => (this.error = error.message || error)); } } };