From 9b3802956a4ebf25e84fef0a3ffec96d0507e4f1 Mon Sep 17 00:00:00 2001 From: sadnub Date: Thu, 24 Sep 2020 11:21:57 -0400 Subject: [PATCH] tweak to totp setup to not logout user if totp is already set and redirect to dashboard --- src/views/TOTPSetup.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/TOTPSetup.vue b/src/views/TOTPSetup.vue index 8c601df..185abcd 100644 --- a/src/views/TOTPSetup.vue +++ b/src/views/TOTPSetup.vue @@ -9,9 +9,8 @@

- Scan the QR Code with your authenticator app and then click - Finish to be redirected back to the signin page. - If you navigate away from this page you 2FA signin will need to be reset! + Scan the QR Code with your authenticator app and then click Finish to be redirected back to the signin + page. If you navigate away from this page you 2FA signin will need to be reset!

@@ -54,9 +53,10 @@ export default { this.$q.loading.hide(); if (r.data === "TOTP token already set") { + //don't logout user if totp is already set + this.cleared_token = true; this.$router.push({ name: "Login" }); } else { - this.prompt = false; this.totp_key = r.data.totp_key; this.qr_url = r.data.qr_url; }