mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +03:00
Extend example extension code with more details
This commit is contained in:
parent
5e2d9c4fb0
commit
7135af995d
6 changed files with 122 additions and 12 deletions
|
|
@ -8,9 +8,9 @@ class TwoFactorAuthPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
{
|
||||
const
|
||||
NAME = 'Two Factor Authentication',
|
||||
VERSION = '2.16.6',
|
||||
RELEASE = '2023-10-24',
|
||||
REQUIRED = '2.15.2',
|
||||
VERSION = '2.17.0',
|
||||
RELEASE = '2023-11-27',
|
||||
REQUIRED = '2.30.0',
|
||||
CATEGORY = 'Login',
|
||||
DESCRIPTION = 'Provides support for TOTP 2FA';
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
// https://github.com/the-djmaze/snappymail/issues/349
|
||||
addEventListener('sm-show-screen', e => {
|
||||
if ('settings' !== e.detail && rl.settings.get('SetupTwoFactor')) {
|
||||
if (!e.detail.startsWith('settings') && rl.settings.get('SetupTwoFactor')) {
|
||||
e.preventDefault();
|
||||
forceTOTP();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue