Fixed recovery code refresh bug.

This commit is contained in:
chesspro13 2024-09-07 14:37:09 -07:00
parent 9dd185e37e
commit ede7bbd8ed
No known key found for this signature in database
GPG Key ID: 5FEAE94D298066E5

View File

@ -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);