Skip to content

Build your personal knowledge base with Trilium Notes

Fixed recovery code refresh bug.

chesspro13ede7bbd8edaf
diff --git a/src/public/app/widgets/type_widgets/options/multi_factor_authentication.js b/src/public/app/widgets/type_widgets/options/multi_factor_authentication.js
index ac60c02db3..688f36556f 100644
--- a/src/public/app/widgets/type_widgets/options/multi_factor_authentication.js
+++ b/src/public/app/widgets/type_widgets/options/multi_factor_authentication.js
@@ -133,6 +133,8 @@ export default class MultiFactorAuthenticationOptions extends OptionsWidget {
this.$protectedSessionTimeout.val()
)
);
+
+ this.displayRecoveryKeys();
}
async setRecoveryKeys() {
@@ -182,7 +184,6 @@ export default class MultiFactorAuthenticationOptions extends OptionsWidget {
this.$totpEnabled.prop("checked", result.message);
this.$authenticatorCode.prop("disabled", !result.message);
this.$generateRecoveryCodeButton.prop("disabled", !result.message);
- this.displayRecoveryKeys();
}
else {
this.$totpEnabled.prop("checked", false);