mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Changes for #349
This commit is contained in:
parent
80eed213d9
commit
a06b59784a
3 changed files with 27 additions and 16 deletions
|
|
@ -56,11 +56,12 @@ class TwoFactorAuthSettings
|
|||
value = !!value;
|
||||
if (value && this.twoFactorTested()) {
|
||||
this.viewEnable_(value);
|
||||
Remote.enableTwoFactor(fn, value);
|
||||
Remote.enableTwoFactor(iError => {
|
||||
fn(iError);
|
||||
rl.settings.get('RequireTwoFactor') && rl.settings.set('SetupTwoFactor', !!iError);
|
||||
}, value);
|
||||
} else {
|
||||
if (!value) {
|
||||
this.viewEnable_(value);
|
||||
}
|
||||
value || this.viewEnable_(value);
|
||||
Remote.enableTwoFactor(fn, false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue