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