Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Fix broken 'Cancel' button on the TOTP page.

Kailash Nadh503894d17b0e
diff --git a/static/admin/assets/js/views/profile.js b/static/admin/assets/js/views/profile.js
index 0c34c65c..ff0e72ae 100644
--- a/static/admin/assets/js/views/profile.js
+++ b/static/admin/assets/js/views/profile.js
@@ -55,7 +55,7 @@ function profileView() {
this.totpSecret = data.secret;
this.$nextTick(() => this.$refs.totpCode && this.$refs.totpCode.focus());
} catch (e) {
- this.resetTotp();
+ this.cancelTotp();
}
},
@@ -72,7 +72,7 @@ function profileView() {
u.reload({ message: i18n.t('users.twoFAEnabled') });
},
- resetTotp() {
+ cancelTotp() {
this.showTotpSetup = false;
this.totpQR = null;
this.totpSecret = null;