mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 07:35:55 +08:00
Better solution for #150
This commit is contained in:
parent
db8ba85350
commit
7ede8eeb4a
|
@ -7,7 +7,7 @@
|
|||
|
||||
if (forgotUrl || registerUrl) {
|
||||
addEventListener('rl-view-model', e => {
|
||||
if (e.detail && 'Login' === e.detail.templateId) {
|
||||
if (e.detail && 'Login' === (e.detail.templateId || e.detail.viewModelTemplateID)) {
|
||||
const container = e.detail.viewModelDom.querySelector('#plugin-Login-BottomControlGroup'),
|
||||
forgot = 'LOGIN/LABEL_FORGOT_PASSWORD',
|
||||
register = 'LOGIN/LABEL_REGISTRATION';
|
||||
|
|
|
@ -4,8 +4,8 @@ class LoginRegisterPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
{
|
||||
const
|
||||
NAME = 'Register and Forgot',
|
||||
VERSION = '2.0',
|
||||
RELEASE = '2021-06-01',
|
||||
VERSION = '2.1',
|
||||
RELEASE = '2021-10-04',
|
||||
REQUIRED = '2.5.2',
|
||||
CATEGORY = 'Login',
|
||||
DESCRIPTION = 'Links on login screen for registration and forgotten password';
|
||||
|
|
|
@ -6,8 +6,8 @@ class TwoFactorAuthPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
{
|
||||
const
|
||||
NAME = 'Two Factor Authentication',
|
||||
VERSION = '2.1',
|
||||
RELEASE = '2021-07-28',
|
||||
VERSION = '2.2',
|
||||
RELEASE = '2021-10-04',
|
||||
REQUIRED = '2.6.0',
|
||||
CATEGORY = 'Login',
|
||||
DESCRIPTION = 'Provides support for TOTP 2FA';
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
(rl => {
|
||||
|
||||
rl && addEventListener('rl-view-model', e => {
|
||||
if (e.detail && 'Login' === e.detail.templateId) {
|
||||
if (e.detail && 'Login' === (e.detail.templateId || e.detail.viewModelTemplateID)) {
|
||||
const container = e.detail.viewModelDom.querySelector('#plugin-Login-BottomControlGroup'),
|
||||
placeholder = 'LOGIN/LABEL_TWO_FACTOR_CODE';
|
||||
if (container) {
|
||||
|
|
Loading…
Reference in a new issue