mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
Added regenerate totp button to the click event for enabling totp
This commit is contained in:
parent
4574b81caf
commit
f8d1d553df
@ -101,6 +101,7 @@ export default class MultiFactorAuthenticationOptions extends OptionsWidget {
|
||||
this.$totpSecretInput.prop("disabled", !result.message);
|
||||
this.$saveTotpButton.prop("disabled", !result.message);
|
||||
this.$totpSecret.prop("disapbled", !result.message);
|
||||
this.$regenerateTotpButton.prop("disabled", !result.message);
|
||||
} else {
|
||||
toastService.showError(result.message);
|
||||
}
|
||||
|
@ -39,6 +39,7 @@ function disableTOTP() {
|
||||
}
|
||||
|
||||
function setTotpSecret(req: Request) {
|
||||
// TODO: CHECK VALIDITY OF SECRET
|
||||
options.setOption
|
||||
totp_fs.saveTotpSecret(req.body.secret)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user