mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Add support for global 2FA enforcement #349
This commit is contained in:
parent
375f715b78
commit
8b3cfc7a67
15 changed files with 85 additions and 54 deletions
|
|
@ -70,12 +70,12 @@ class TwoFactorAuthSettings
|
|||
// translatorTrigger();
|
||||
return this.twoFactorTested() || this.viewEnable_()
|
||||
? ''
|
||||
: rl.i18n('POPUPS_TWO_FACTOR_CFG/TWO_FACTOR_SECRET_TEST_BEFORE_DESC');
|
||||
: rl.i18n('PLUGIN_2FA/TWO_FACTOR_SECRET_TEST_BEFORE_DESC');
|
||||
},
|
||||
|
||||
viewTwoFactorStatus: () => {
|
||||
// translatorTrigger();
|
||||
return rl.i18n('POPUPS_TWO_FACTOR_CFG/TWO_FACTOR_SECRET_'
|
||||
return rl.i18n('PLUGIN_2FA/TWO_FACTOR_SECRET_'
|
||||
+ (this.twoFactorStatus() ? '' : 'NOT_')
|
||||
+ 'CONFIGURED_DESC'
|
||||
);
|
||||
|
|
@ -202,7 +202,7 @@ class TwoFactorAuthTestPopupView extends rl.pluginPopupView {
|
|||
rl.addSettingsViewModel(
|
||||
TwoFactorAuthSettings,
|
||||
'TwoFactorAuthSettings',
|
||||
'POPUPS_TWO_FACTOR_CFG/LEGEND_TWO_FACTOR_AUTH',
|
||||
'PLUGIN_2FA/LEGEND_TWO_FACTOR_AUTH',
|
||||
'two-factor-auth'
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue