Merge branch 'master' into plugin-2fa

This commit is contained in:
djmaze 2021-07-14 12:51:54 +02:00
commit 7985eaa23a
303 changed files with 51374 additions and 11952 deletions

View file

@ -14,6 +14,8 @@ class AutoDomainGrabPlugin extends \RainLoop\Plugins\AbstractPlugin
{
const
NAME = '',
VERSION = '2.1',
REQUIRED = '2.5.0',
CATEGORY = 'General',
DESCRIPTION = '';

View file

@ -4,7 +4,9 @@ class BlackListPlugin extends \RainLoop\Plugins\AbstractPlugin
{
const
NAME = 'Black list',
VERSION = '2.0',
VERSION = '2.1',
RELEASE = '2021-04-21',
REQUIRED = '2.5.0',
CATEGORY = 'Login',
DESCRIPTION = 'Simple black list plugin (with wildcard and exceptions functionality).';

View file

@ -5,7 +5,7 @@ class CKEditorPlugin extends \RainLoop\Plugins\AbstractPlugin
const
NAME = 'CKEditor',
VERSION = '2.1',
RELEASE = '2021-04-01',
RELEASE = '2021-04-19',
REQUIRED = '2.5.0',
DESCRIPTION = 'Use CKEditor instead of Squire as WYSIWYG';

View file

@ -4,6 +4,8 @@ class CustomAuthExamplePlugin extends \RainLoop\Plugins\AbstractPlugin
{
const
NAME = '',
VERSION = '2.1',
REQUIRED = '2.5.0',
CATEGORY = 'Login',
DESCRIPTION = '';

View file

@ -4,7 +4,9 @@ class CustomLoginMappingPlugin extends \RainLoop\Plugins\AbstractPlugin
{
const
NAME = 'Custom Login Mapping',
VERSION = '2.0',
VERSION = '2.1',
RELEASE = '2021-04-21',
REQUIRED = '2.5.0',
CATEGORY = 'Login',
DESCRIPTION = 'Plugin which allows you to set up custom username by email address.';

View file

@ -0,0 +1,33 @@
(rl => {
if (rl) {
const
forgotUrl = rl.settings.get('forgotPasswordLinkUrl'),
registerUrl = rl.settings.get('registrationLinkUrl');
if (forgotUrl || registerUrl) {
addEventListener('rl-view-model', e => {
if (e.detail && 'Login' === e.detail.viewModelTemplateID) {
const container = e.detail.viewModelDom.querySelector('#plugin-Login-BottomControlGroup'),
forgot = 'LOGIN/LABEL_FORGOT_PASSWORD',
register = 'LOGIN/LABEL_REGISTRATION';
if (container) {
let html = '';
if (forgotUrl) {
html = html + '<p class="forgot-link">'
+ '<a href="'+forgotUrl+'" target="_blank" class="g-ui-link" data-i18n="'+forgot+'">'+rl.i18n(forgot)+'</a>'
+ '</p>';
}
if (registerUrl) {
html = html + '<p class="registration-link">'
+ '<a href="'+registerUrl+'" target="_blank" class="g-ui-link" data-i18n="'+register+'">'+rl.i18n(register)+'</a>'
+ '</p>';
}
container.append(Element.fromHTML('<div class="controls clearfix">' + html + '</div>'));
}
}
});
}
}
})(window.rl);

View file

@ -0,0 +1,42 @@
<?php
class LoginRegisterPlugin extends \RainLoop\Plugins\AbstractPlugin
{
const
NAME = 'Register and Forgot',
VERSION = '2.0',
RELEASE = '2021-06-01',
REQUIRED = '2.5.2',
CATEGORY = 'Login',
DESCRIPTION = 'Links on login screen for registration and forgot password';
public function Init() : void
{
$this->UseLangs(true);
$this->addJs('LoginRegister.js');
$this->addHook('filter.app-data', 'FilterAppData');
}
public function configMapping() : array
{
return [
\RainLoop\Plugins\Property::NewInstance("forgot_password_link_url")
// ->SetLabel('TAB_LOGIN/LABEL_FORGOT_PASSWORD_LINK_URL')
->SetLabel('Forgot password url')
->SetType(\RainLoop\Enumerations\PluginPropertyType::URL),
\RainLoop\Plugins\Property::NewInstance("registration_link_url")
// ->SetLabel('TAB_LOGIN/LABEL_REGISTRATION_LINK_URL')
->SetLabel('Register url')
->SetType(\RainLoop\Enumerations\PluginPropertyType::URL),
];
}
public function FilterAppData($bAdmin, &$aResult)
{
if (!$bAdmin && \is_array($aResult) && empty($aResult['Auth'])) {
$aResult['forgotPasswordLinkUrl'] = \trim($this->Config()->Get('plugin', 'forgot_password_link_url', ''));
$aResult['registrationLinkUrl'] = \trim($this->Config()->Get('plugin', 'registration_link_url', ''));
}
}
}

View file

@ -0,0 +1,10 @@
{
"LOGIN": {
"LABEL_FORGOT_PASSWORD": "Passwort vergessen",
"LABEL_REGISTRATION": "Registrieren"
},
"TAB_LOGIN": {
"LABEL_FORGOT_PASSWORD_LINK_URL": "Forgot password url",
"LABEL_REGISTRATION_LINK_URL": "Register url"
}
}

View file

@ -0,0 +1,10 @@
{
"LOGIN": {
"LABEL_FORGOT_PASSWORD": "Forgot password",
"LABEL_REGISTRATION": "Register"
},
"TAB_LOGIN": {
"LABEL_FORGOT_PASSWORD_LINK_URL": "Forgot password url",
"LABEL_REGISTRATION_LINK_URL": "Register url"
}
}

View file

@ -0,0 +1,10 @@
{
"LOGIN": {
"LABEL_FORGOT_PASSWORD": "Olvidé mi contraseña",
"LABEL_REGISTRATION": "Registrarse"
},
"TAB_LOGIN": {
"LABEL_FORGOT_PASSWORD_LINK_URL": "Forgot password url",
"LABEL_REGISTRATION_LINK_URL": "Register url"
}
}

View file

@ -0,0 +1,10 @@
{
"LOGIN": {
"LABEL_FORGOT_PASSWORD": "Mot de passe oublié",
"LABEL_REGISTRATION": "S'enregistrer"
},
"TAB_LOGIN": {
"LABEL_FORGOT_PASSWORD_LINK_URL": "Forgot password url",
"LABEL_REGISTRATION_LINK_URL": "Register url"
}
}

View file

@ -0,0 +1,10 @@
{
"LOGIN": {
"LABEL_FORGOT_PASSWORD": "Elfelejtett jelszó",
"LABEL_REGISTRATION": "Regisztráció"
},
"TAB_LOGIN": {
"LABEL_FORGOT_PASSWORD_LINK_URL": "Forgot password url",
"LABEL_REGISTRATION_LINK_URL": "Register url"
}
}

View file

@ -0,0 +1,10 @@
{
"LOGIN": {
"LABEL_FORGOT_PASSWORD": "Wachtwoord vergeten",
"LABEL_REGISTRATION": "Registreren"
},
"TAB_LOGIN": {
"LABEL_FORGOT_PASSWORD_LINK_URL": "Forgot password url",
"LABEL_REGISTRATION_LINK_URL": "Register url"
}
}

View file

@ -0,0 +1,10 @@
{
"LOGIN": {
"LABEL_FORGOT_PASSWORD": "Glömt lösenord",
"LABEL_REGISTRATION": "Registrera"
},
"TAB_LOGIN": {
"LABEL_FORGOT_PASSWORD_LINK_URL": "Forgot password url",
"LABEL_REGISTRATION_LINK_URL": "Register url"
}
}

View file

@ -0,0 +1,10 @@
{
"LOGIN": {
"LABEL_FORGOT_PASSWORD": "忘记密码",
"LABEL_REGISTRATION": "注册"
},
"TAB_LOGIN": {
"LABEL_FORGOT_PASSWORD_LINK_URL": "Forgot password url",
"LABEL_REGISTRATION_LINK_URL": "Register url"
}
}

View file

@ -4,7 +4,9 @@ class OverrideSmtpCredentialsPlugin extends \RainLoop\Plugins\AbstractPlugin
{
const
NAME = 'Override Smtp Credentials',
VERSION = '2.0',
VERSION = '2.1',
RELEASE = '2021-04-21',
REQUIRED = '2.5.0',
CATEGORY = 'Filters',
DESCRIPTION = 'Plugin which allows you to override smtp credentials specified users.';

View file

@ -4,6 +4,8 @@ class ProxyauthLoginExamplePlugin extends \RainLoop\Plugins\AbstractPlugin
{
const
NAME = '',
VERSION = '2.1',
REQUIRED = '2.5.0',
CATEGORY = 'General',
DESCRIPTION = '';

View file

@ -4,7 +4,9 @@ class WhiteListPlugin extends \RainLoop\Plugins\AbstractPlugin
{
const
NAME = 'White list',
VERSION = '2.0',
VERSION = '2.1',
RELEASE = '2021-04-21',
REQUIRED = '2.5.0',
CATEGORY = 'Login',
DESCRIPTION = 'Simple white list plugin (with wildcard and exceptions functionality).';