From b5003ca7a3386a314d4e1a8c1933ce0bc98ab5aa Mon Sep 17 00:00:00 2001 From: sadnub Date: Wed, 23 Sep 2020 17:13:36 -0400 Subject: [PATCH] fix totp setup --- src/views/TOTPSetup.vue | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/views/TOTPSetup.vue b/src/views/TOTPSetup.vue index 21fbe20..5d3a274 100644 --- a/src/views/TOTPSetup.vue +++ b/src/views/TOTPSetup.vue @@ -45,20 +45,6 @@ export default { }; }, methods: { - checkPass() { - const data = { - username: this.$route.params.username, - password: this.password, - }; - this.$axios - .post("/checkcreds/", data) - .then(r => { - this.getQRCodeData(); - }) - .catch(() => { - this.notifyError("Bad credentials"); - }); - }, getQRCodeData() { this.$q.loading.show(); @@ -67,6 +53,7 @@ export default { .then(r => { this.$q.loading.hide(); + console.log(r.data); if (r.data === "TOTP token already set") { this.$router.push({ name: "Login" }); } else { @@ -96,6 +83,7 @@ export default { }, }, created() { + this.getQRCodeData(); this.$q.dark.set(false); }, beforeDestroy() {