From d01fa9bcfcec87c14adcf82f5097a83129967ae9 Mon Sep 17 00:00:00 2001 From: Ponkhy Date: Tue, 7 Sep 2021 10:25:25 +0200 Subject: [PATCH] Auto login after setup --- src/pages/Setup.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pages/Setup.vue b/src/pages/Setup.vue index dbff8683..9cb7c5ec 100644 --- a/src/pages/Setup.vue +++ b/src/pages/Setup.vue @@ -85,7 +85,12 @@ export default { this.$root.toastRes(res) if (res.ok) { - this.$router.push("/") + this.processing = true; + + this.$root.login(this.username, this.password, (res) => { + this.processing = false; + this.$router.push("/") + }) } }) },