aboutsummaryrefslogtreecommitdiff
path: root/front-end/src/components/Settings/TotpSettings.vue
diff options
context:
space:
mode:
Diffstat (limited to 'front-end/src/components/Settings/TotpSettings.vue')
-rw-r--r--front-end/src/components/Settings/TotpSettings.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/front-end/src/components/Settings/TotpSettings.vue b/front-end/src/components/Settings/TotpSettings.vue
index cc8642f..1d79914 100644
--- a/front-end/src/components/Settings/TotpSettings.vue
+++ b/front-end/src/components/Settings/TotpSettings.vue
@@ -71,6 +71,9 @@ const addOrUpdate = async () => {
newConfig.secret = base32Encode(decSecret, 'RFC3548', { padding: false })
set(newTotpConfig, newConfig);
+
+ //refresh config
+ store.mfaRefreshMethods();
})
}
@@ -110,7 +113,7 @@ const onVerifyOtp = async (code: string) => {
>
</span>
</div>
- <div v-if="totpEnabled" class="flex" @click="addOrUpdate()">
+ <div v-if="totpEnabled" class="flex">
<button class="btn light">
Regenerate
</button>