mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Bugfix: 2FA enforcement #349
This commit is contained in:
parent
01fe226a92
commit
656c5f2a3e
2 changed files with 13 additions and 8 deletions
|
|
@ -106,7 +106,12 @@ class TwoFactorAuthSettings
|
|||
}
|
||||
|
||||
testTwoFactor() {
|
||||
TwoFactorAuthTestPopupView.showModal([this.twoFactorTested]);
|
||||
TwoFactorAuthTestPopupView.showModal([
|
||||
() => {
|
||||
this.twoFactorTested(true);
|
||||
this.viewEnable(true);
|
||||
}
|
||||
]);
|
||||
}
|
||||
|
||||
clearTwoFactor() {
|
||||
|
|
@ -188,15 +193,15 @@ class TwoFactorAuthTestPopupView extends rl.pluginPopupView {
|
|||
Remote.verifyCode(iError => {
|
||||
this.testing(false);
|
||||
this.codeStatus(!iError);
|
||||
this.twoFactorTested(!iError);
|
||||
iError || (this.onSuccess() | this.close());
|
||||
}, this.code());
|
||||
}
|
||||
|
||||
onShow(twoFactorTested) {
|
||||
onShow(onSuccess) {
|
||||
this.code('');
|
||||
this.codeStatus(null);
|
||||
this.testing(false);
|
||||
this.twoFactorTested = twoFactorTested;
|
||||
this.onSuccess = onSuccess;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue