add gui_access flag to admins and customers to allow/disallow login to the webui; fixes #1219

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2024-01-07 10:23:02 +01:00
parent 9c23013777
commit 284def5832
12 changed files with 113 additions and 28 deletions

View File

@@ -165,27 +165,33 @@ if ($action == '2fa_entercode') {
$loginname = Validate::validate($_POST['loginname'], 'loginname'); $loginname = Validate::validate($_POST['loginname'], 'loginname');
$password = Validate::validate($_POST['password'], 'password'); $password = Validate::validate($_POST['password'], 'password');
$stmt = Database::prepare("SELECT `loginname` AS `customer` FROM `" . TABLE_PANEL_CUSTOMERS . "` $stmt = Database::prepare("
WHERE `loginname`= :loginname"); SELECT `loginname` AS `customer`
FROM `" . TABLE_PANEL_CUSTOMERS . "`
WHERE `loginname`= :loginname
AND `gui_access` = 1
");
Database::pexecute($stmt, [ Database::pexecute($stmt, [
"loginname" => $loginname "loginname" => $loginname
]); ]);
$row = $stmt->fetch(PDO::FETCH_ASSOC); $row = $stmt->fetch(PDO::FETCH_ASSOC);
$is_admin = false;
if ($row && $row['customer'] == $loginname) { if ($row && $row['customer'] == $loginname) {
$table = "`" . TABLE_PANEL_CUSTOMERS . "`"; $table = "`" . TABLE_PANEL_CUSTOMERS . "`";
$uid = 'customerid'; $uid = 'customerid';
$adminsession = '0'; $adminsession = '0';
$is_admin = false;
} else { } else {
$is_admin = true;
if ((int)Settings::Get('login.domain_login') == 1) { if ((int)Settings::Get('login.domain_login') == 1) {
$domainname = $idna_convert->encode(preg_replace([ $domainname = $idna_convert->encode(preg_replace([
'/\:(\d)+$/', '/\:(\d)+$/',
'/^https?\:\/\//' '/^https?\:\/\//'
], '', $loginname)); ], '', $loginname));
$stmt = Database::prepare("SELECT `customerid` FROM `" . TABLE_PANEL_DOMAINS . "` $stmt = Database::prepare("
WHERE `domain` = :domain"); SELECT `customerid`
FROM `" . TABLE_PANEL_DOMAINS . "`
WHERE `domain` = :domain
");
Database::pexecute($stmt, [ Database::pexecute($stmt, [
"domain" => $domainname "domain" => $domainname
]); ]);
@@ -194,8 +200,11 @@ if ($action == '2fa_entercode') {
if (isset($row2['customerid']) && $row2['customerid'] > 0) { if (isset($row2['customerid']) && $row2['customerid'] > 0) {
$loginname = Customer::getCustomerDetail($row2['customerid'], 'loginname'); $loginname = Customer::getCustomerDetail($row2['customerid'], 'loginname');
if ($loginname !== false) { if ($loginname !== false) {
$stmt = Database::prepare("SELECT `loginname` AS `customer` FROM `" . TABLE_PANEL_CUSTOMERS . "` $stmt = Database::prepare("
WHERE `loginname`= :loginname"); SELECT `loginname` AS `customer`
FROM `" . TABLE_PANEL_CUSTOMERS . "`
WHERE `loginname`= :loginname
");
Database::pexecute($stmt, [ Database::pexecute($stmt, [
"loginname" => $loginname "loginname" => $loginname
]); ]);
@@ -204,10 +213,11 @@ if ($action == '2fa_entercode') {
$table = "`" . TABLE_PANEL_CUSTOMERS . "`"; $table = "`" . TABLE_PANEL_CUSTOMERS . "`";
$uid = 'customerid'; $uid = 'customerid';
$adminsession = '0'; $adminsession = '0';
$is_admin = false;
} }
} }
} }
} else {
$is_admin = true;
} }
} }
@@ -218,9 +228,11 @@ if ($action == '2fa_entercode') {
if ($is_admin) { if ($is_admin) {
if (Froxlor::hasUpdates() || Froxlor::hasDbUpdates()) { if (Froxlor::hasUpdates() || Froxlor::hasDbUpdates()) {
$stmt = Database::prepare("SELECT `loginname` AS `admin` FROM `" . TABLE_PANEL_ADMINS . "` $stmt = Database::prepare("
SELECT `loginname` AS `admin` FROM `" . TABLE_PANEL_ADMINS . "`
WHERE `loginname`= :loginname WHERE `loginname`= :loginname
AND `change_serversettings` = '1'"); AND `change_serversettings` = '1'
");
Database::pexecute($stmt, [ Database::pexecute($stmt, [
"loginname" => $loginname "loginname" => $loginname
]); ]);
@@ -231,8 +243,12 @@ if ($action == '2fa_entercode') {
exit(); exit();
} }
} else { } else {
$stmt = Database::prepare("SELECT `loginname` AS `admin` FROM `" . TABLE_PANEL_ADMINS . "` $stmt = Database::prepare("
WHERE `loginname`= :loginname"); SELECT `loginname` AS `admin`
FROM `" . TABLE_PANEL_ADMINS . "`
WHERE `loginname`= :loginname
AND `gui_access` = 1
");
Database::pexecute($stmt, [ Database::pexecute($stmt, [
"loginname" => $loginname "loginname" => $loginname
]); ]);
@@ -257,8 +273,9 @@ if ($action == '2fa_entercode') {
} }
} }
$userinfo_stmt = Database::prepare("SELECT * FROM $table $userinfo_stmt = Database::prepare("
WHERE `loginname`= :loginname"); SELECT * FROM $table WHERE `loginname`= :loginname
");
Database::pexecute($userinfo_stmt, [ Database::pexecute($userinfo_stmt, [
"loginname" => $loginname "loginname" => $loginname
]); ]);
@@ -281,9 +298,11 @@ if ($action == '2fa_entercode') {
} else { } else {
// login correct // login correct
// reset loginfail_counter, set lastlogin_succ // reset loginfail_counter, set lastlogin_succ
$stmt = Database::prepare("UPDATE $table $stmt = Database::prepare("
SET `lastlogin_succ`= :lastlogin_succ, `loginfail_count`='0' UPDATE $table
WHERE `$uid`= :uid"); SET `lastlogin_succ`= :lastlogin_succ, `loginfail_count`='0'
WHERE `$uid`= :uid
");
Database::pexecute($stmt, [ Database::pexecute($stmt, [
"lastlogin_succ" => time(), "lastlogin_succ" => time(),
"uid" => $userinfo[$uid] "uid" => $userinfo[$uid]
@@ -293,9 +312,11 @@ if ($action == '2fa_entercode') {
} }
} else { } else {
// login incorrect // login incorrect
$stmt = Database::prepare("UPDATE $table $stmt = Database::prepare("
UPDATE $table
SET `lastlogin_fail`= :lastlogin_fail, `loginfail_count`=`loginfail_count`+1 SET `lastlogin_fail`= :lastlogin_fail, `loginfail_count`=`loginfail_count`+1
WHERE `$uid`= :uid"); WHERE `$uid`= :uid
");
Database::pexecute($stmt, [ Database::pexecute($stmt, [
"lastlogin_fail" => time(), "lastlogin_fail" => time(),
"uid" => $userinfo[$uid] "uid" => $userinfo[$uid]

View File

@@ -159,6 +159,7 @@ CREATE TABLE `panel_admins` (
`type_2fa` tinyint(1) NOT NULL default '0', `type_2fa` tinyint(1) NOT NULL default '0',
`data_2fa` varchar(25) NOT NULL default '', `data_2fa` varchar(25) NOT NULL default '',
`api_allowed` tinyint(1) NOT NULL default '1', `api_allowed` tinyint(1) NOT NULL default '1',
`gui_access` tinyint(1) NOT NULL default '1',
PRIMARY KEY (`adminid`), PRIMARY KEY (`adminid`),
UNIQUE KEY `loginname` (`loginname`) UNIQUE KEY `loginname` (`loginname`)
) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci ROW_FORMAT=DYNAMIC; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci ROW_FORMAT=DYNAMIC;
@@ -227,6 +228,7 @@ CREATE TABLE `panel_customers` (
`api_allowed` tinyint(1) NOT NULL default '1', `api_allowed` tinyint(1) NOT NULL default '1',
`logviewenabled` tinyint(1) NOT NULL default '0', `logviewenabled` tinyint(1) NOT NULL default '0',
`allowed_mysqlserver` text NOT NULL, `allowed_mysqlserver` text NOT NULL,
`gui_access` tinyint(1) NOT NULL default '1',
PRIMARY KEY (`customerid`), PRIMARY KEY (`customerid`),
UNIQUE KEY `loginname` (`loginname`) UNIQUE KEY `loginname` (`loginname`)
) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci ROW_FORMAT=DYNAMIC; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci ROW_FORMAT=DYNAMIC;

View File

@@ -77,6 +77,10 @@ if (Froxlor::isFroxlorVersion('2.1.4')) {
Update::lastStepStatus(1, '!!!'); Update::lastStepStatus(1, '!!!');
} }
Update::showUpdateStep("Enhancing admin and user table");
Database::query("ALTER TABLE `" . TABLE_PANEL_ADMINS . "` ADD `gui_access` tinyint(1) NOT NULL default '1';");
Database::query("ALTER TABLE `" . TABLE_PANEL_CUSTOMERS . "` ADD `gui_access` tinyint(1) NOT NULL default '1';");
Update::lastStepStatus(0);
$to_clean = [ $to_clean = [
'actions/admin/settings/180.dkim.php', 'actions/admin/settings/180.dkim.php',

View File

@@ -146,6 +146,8 @@ class Admins extends ApiCommand implements ResourceEntity
* optional, default auto-generated * optional, default auto-generated
* @param string $def_language * @param string $def_language
* optional, default is system-default language * optional, default is system-default language
* @param bool $gui_access
* optional, allow login via webui, if false ONLY the login via webui is disallowed; default true
* @param bool $api_allowed * @param bool $api_allowed
* optional, default is true if system setting api.enabled is true, else false * optional, default is true if system setting api.enabled is true, else false
* @param string $custom_notes * @param string $custom_notes
@@ -219,6 +221,7 @@ class Admins extends ApiCommand implements ResourceEntity
// parameters // parameters
$def_language = $this->getParam('def_language', true, Settings::Get('panel.standardlanguage')); $def_language = $this->getParam('def_language', true, Settings::Get('panel.standardlanguage'));
$gui_access = $this->getBoolParam('gui_access', true, true);
$api_allowed = $this->getBoolParam('api_allowed', true, Settings::Get('api.enabled')); $api_allowed = $this->getBoolParam('api_allowed', true, Settings::Get('api.enabled'));
$custom_notes = $this->getParam('custom_notes', true, ''); $custom_notes = $this->getParam('custom_notes', true, '');
$custom_notes_show = $this->getBoolParam('custom_notes_show', true, 0); $custom_notes_show = $this->getBoolParam('custom_notes_show', true, 0);
@@ -316,6 +319,7 @@ class Admins extends ApiCommand implements ResourceEntity
'name' => $name, 'name' => $name,
'email' => $email, 'email' => $email,
'lang' => $def_language, 'lang' => $def_language,
'gui_access' => $gui_access,
'api_allowed' => $api_allowed, 'api_allowed' => $api_allowed,
'change_serversettings' => $change_serversettings, 'change_serversettings' => $change_serversettings,
'customers' => $customers, 'customers' => $customers,
@@ -344,6 +348,7 @@ class Admins extends ApiCommand implements ResourceEntity
`name` = :name, `name` = :name,
`email` = :email, `email` = :email,
`def_language` = :lang, `def_language` = :lang,
`gui_access` = :gui_access,
`api_allowed` = :api_allowed, `api_allowed` = :api_allowed,
`change_serversettings` = :change_serversettings, `change_serversettings` = :change_serversettings,
`customers` = :customers, `customers` = :customers,
@@ -431,6 +436,8 @@ class Admins extends ApiCommand implements ResourceEntity
* optional, default auto-generated * optional, default auto-generated
* @param string $def_language * @param string $def_language
* optional, default is system-default language * optional, default is system-default language
* @param bool $gui_access
* * optional, allow login via webui, if false ONLY the login via webui is disallowed; default true
* @param bool $api_allowed * @param bool $api_allowed
* optional, default is true if system setting api.enabled is true, else false * optional, default is true if system setting api.enabled is true, else false
* @param string $custom_notes * @param string $custom_notes
@@ -524,6 +531,7 @@ class Admins extends ApiCommand implements ResourceEntity
// you cannot edit some of the details of yourself // you cannot edit some of the details of yourself
if ($result['adminid'] == $this->getUserDetail('adminid')) { if ($result['adminid'] == $this->getUserDetail('adminid')) {
$gui_access = $result['gui_access'];
$api_allowed = $result['api_allowed']; $api_allowed = $result['api_allowed'];
$deactivated = $result['deactivated']; $deactivated = $result['deactivated'];
$customers = $result['customers']; $customers = $result['customers'];
@@ -542,6 +550,7 @@ class Admins extends ApiCommand implements ResourceEntity
$traffic = $result['traffic']; $traffic = $result['traffic'];
$ipaddress = ($result['ip'] != -1 ? json_decode($result['ip'], true) : -1); $ipaddress = ($result['ip'] != -1 ? json_decode($result['ip'], true) : -1);
} else { } else {
$gui_access = $this->getBoolParam('gui_access', true, $result['gui_access']);
$api_allowed = $this->getBoolParam('api_allowed', true, $result['api_allowed']); $api_allowed = $this->getBoolParam('api_allowed', true, $result['api_allowed']);
$deactivated = $this->getBoolParam('deactivated', true, $result['deactivated']); $deactivated = $this->getBoolParam('deactivated', true, $result['deactivated']);
@@ -665,6 +674,7 @@ class Admins extends ApiCommand implements ResourceEntity
'name' => $name, 'name' => $name,
'email' => $email, 'email' => $email,
'lang' => $def_language, 'lang' => $def_language,
'gui_access' => $gui_access,
'api_allowed' => $api_allowed, 'api_allowed' => $api_allowed,
'change_serversettings' => $change_serversettings, 'change_serversettings' => $change_serversettings,
'customers' => $customers, 'customers' => $customers,
@@ -694,6 +704,7 @@ class Admins extends ApiCommand implements ResourceEntity
`name` = :name, `name` = :name,
`email` = :email, `email` = :email,
`def_language` = :lang, `def_language` = :lang,
`gui_access` = :gui_access,
`api_allowed` = :api_allowed, `api_allowed` = :api_allowed,
`change_serversettings` = :change_serversettings, `change_serversettings` = :change_serversettings,
`customers` = :customers, `customers` = :customers,

View File

@@ -191,6 +191,8 @@ class Customers extends ApiCommand implements ResourceEntity
* optional * optional
* @param string $def_language , * @param string $def_language ,
* optional, default is system-default language * optional, default is system-default language
* @param bool $gui_access
* optional, allow login via webui, if false ONLY the login via webui is disallowed; default true
* @param bool $api_allowed * @param bool $api_allowed
* optional, default is true if system setting api.enabled is true, else false * optional, default is true if system setting api.enabled is true, else false
* @param int $gender * @param int $gender
@@ -297,6 +299,7 @@ class Customers extends ApiCommand implements ResourceEntity
$fax = $this->getParam('fax', true, ''); $fax = $this->getParam('fax', true, '');
$customernumber = $this->getParam('customernumber', true, ''); $customernumber = $this->getParam('customernumber', true, '');
$def_language = $this->getParam('def_language', true, Settings::Get('panel.standardlanguage')); $def_language = $this->getParam('def_language', true, Settings::Get('panel.standardlanguage'));
$gui_access = $this->getBoolParam('gui_access', true, 1);
$api_allowed = $this->getBoolParam('api_allowed', true, (Settings::Get('api.enabled') && Settings::Get('api.customer_default'))); $api_allowed = $this->getBoolParam('api_allowed', true, (Settings::Get('api.enabled') && Settings::Get('api.customer_default')));
$gender = (int)$this->getParam('gender', true, 0); $gender = (int)$this->getParam('gender', true, 0);
$custom_notes = $this->getParam('custom_notes', true, ''); $custom_notes = $this->getParam('custom_notes', true, '');
@@ -515,6 +518,7 @@ class Customers extends ApiCommand implements ResourceEntity
'email' => $email, 'email' => $email,
'customerno' => $customernumber, 'customerno' => $customernumber,
'lang' => $def_language, 'lang' => $def_language,
'gui_access' => $gui_access,
'api_allowed' => $api_allowed, 'api_allowed' => $api_allowed,
'docroot' => $documentroot, 'docroot' => $documentroot,
'guid' => $guid, 'guid' => $guid,
@@ -557,6 +561,7 @@ class Customers extends ApiCommand implements ResourceEntity
`email` = :email, `email` = :email,
`customernumber` = :customerno, `customernumber` = :customerno,
`def_language` = :lang, `def_language` = :lang,
`gui_access` = :gui_access,
`api_allowed` = :api_allowed, `api_allowed` = :api_allowed,
`documentroot` = :docroot, `documentroot` = :docroot,
`guid` = :guid, `guid` = :guid,
@@ -948,6 +953,8 @@ class Customers extends ApiCommand implements ResourceEntity
* optional * optional
* @param string $def_language , * @param string $def_language ,
* optional, default is system-default language * optional, default is system-default language
* @param bool $gui_access
* optional, allow login via webui, if false ONLY the login via webui is disallowed; default true
* @param bool $api_allowed * @param bool $api_allowed
* optional, default is true if system setting api.enabled is true, else false * optional, default is true if system setting api.enabled is true, else false
* @param int $gender * @param int $gender
@@ -1062,6 +1069,7 @@ class Customers extends ApiCommand implements ResourceEntity
$fax = $this->getParam('fax', true, $result['fax']); $fax = $this->getParam('fax', true, $result['fax']);
$customernumber = $this->getParam('customernumber', true, $result['customernumber']); $customernumber = $this->getParam('customernumber', true, $result['customernumber']);
$def_language = $this->getParam('def_language', true, $result['def_language']); $def_language = $this->getParam('def_language', true, $result['def_language']);
$gui_access = $this->getBoolParam('gui_access', true, $result['gui_access']);
$api_allowed = $this->getBoolParam('api_allowed', true, $result['api_allowed']); $api_allowed = $this->getBoolParam('api_allowed', true, $result['api_allowed']);
$gender = (int)$this->getParam('gender', true, $result['gender']); $gender = (int)$this->getParam('gender', true, $result['gender']);
$custom_notes = $this->getParam('custom_notes', true, $result['custom_notes']); $custom_notes = $this->getParam('custom_notes', true, $result['custom_notes']);
@@ -1396,6 +1404,7 @@ class Customers extends ApiCommand implements ResourceEntity
'logviewenabled' => $logviewenabled, 'logviewenabled' => $logviewenabled,
'custom_notes' => $custom_notes, 'custom_notes' => $custom_notes,
'custom_notes_show' => $custom_notes_show, 'custom_notes_show' => $custom_notes_show,
'gui_access' => $gui_access,
'api_allowed' => $api_allowed, 'api_allowed' => $api_allowed,
'allowed_mysqlserver' => empty($allowed_mysqlserver) ? "" : json_encode($allowed_mysqlserver) 'allowed_mysqlserver' => empty($allowed_mysqlserver) ? "" : json_encode($allowed_mysqlserver)
]; ];
@@ -1439,6 +1448,7 @@ class Customers extends ApiCommand implements ResourceEntity
`logviewenabled` = :logviewenabled, `logviewenabled` = :logviewenabled,
`custom_notes` = :custom_notes, `custom_notes` = :custom_notes,
`custom_notes_show` = :custom_notes_show, `custom_notes_show` = :custom_notes_show,
`gui_access` = :gui_access,
`api_allowed` = :api_allowed, `api_allowed` = :api_allowed,
`allowed_mysqlserver` = :allowed_mysqlserver"; `allowed_mysqlserver` = :allowed_mysqlserver";
$upd_query .= $admin_upd_query; $upd_query .= $admin_upd_query;

View File

@@ -64,6 +64,13 @@ return [
'selected' => $userinfo['language'] 'selected' => $userinfo['language']
], ],
'gui_access' => [
'label' => lng('usersettings.gui_access.title'),
'desc' => lng('usersettings.gui_access.description'),
'type' => 'checkbox',
'value' => '1',
'checked' => 1,
],
'api_allowed' => [ 'api_allowed' => [
'label' => lng('usersettings.api_allowed.title'), 'label' => lng('usersettings.api_allowed.title'),
'desc' => lng('usersettings.api_allowed.description'), 'desc' => lng('usersettings.api_allowed.description'),
@@ -71,7 +78,7 @@ return [
'value' => '1', 'value' => '1',
'checked' => Settings::Get('api.enabled') == '1', 'checked' => Settings::Get('api.enabled') == '1',
'visible' => Settings::Get('api.enabled') == '1' 'visible' => Settings::Get('api.enabled') == '1'
] ],
] ]
], ],
'section_b' => [ 'section_b' => [

View File

@@ -71,6 +71,14 @@ return [
'selected' => $result['def_language'], 'selected' => $result['def_language'],
'visible' => $result['adminid'] != $userinfo['userid'] 'visible' => $result['adminid'] != $userinfo['userid']
], ],
'gui_access' => [
'label' => lng('usersettings.gui_access.title'),
'desc' => lng('usersettings.gui_access.description'),
'type' => 'checkbox',
'value' => '1',
'checked' => $result['gui_access'],
'visible' => $result['adminid'] != $userinfo['userid']
],
'api_allowed' => [ 'api_allowed' => [
'label' => lng('usersettings.api_allowed.title'), 'label' => lng('usersettings.api_allowed.title'),
'desc' => lng('usersettings.api_allowed.description'), 'desc' => lng('usersettings.api_allowed.description'),
@@ -78,7 +86,7 @@ return [
'value' => '1', 'value' => '1',
'checked' => $result['api_allowed'], 'checked' => $result['api_allowed'],
'visible' => Settings::Get('api.enabled') == '1' 'visible' => Settings::Get('api.enabled') == '1'
] ],
] ]
], ],
'section_b' => [ 'section_b' => [

View File

@@ -82,6 +82,13 @@ return [
'select_var' => Language::getLanguages(), 'select_var' => Language::getLanguages(),
'selected' => Settings::Get('panel.standardlanguage') 'selected' => Settings::Get('panel.standardlanguage')
], ],
'gui_access' => [
'label' => lng('usersettings.gui_access.title'),
'desc' => lng('usersettings.gui_access.description'),
'type' => 'checkbox',
'value' => '1',
'checked' => 1
],
'api_allowed' => [ 'api_allowed' => [
'label' => lng('usersettings.api_allowed.title'), 'label' => lng('usersettings.api_allowed.title'),
'desc' => lng('usersettings.api_allowed.description'), 'desc' => lng('usersettings.api_allowed.description'),

View File

@@ -80,6 +80,13 @@ return [
'select_var' => Language::getLanguages(), 'select_var' => Language::getLanguages(),
'selected' => $result['def_language'] 'selected' => $result['def_language']
], ],
'gui_access' => [
'label' => lng('usersettings.gui_access.title'),
'desc' => lng('usersettings.gui_access.description'),
'type' => 'checkbox',
'value' => '1',
'checked' => $result['gui_access'],
],
'api_allowed' => [ 'api_allowed' => [
'label' => lng('usersettings.api_allowed.title'), 'label' => lng('usersettings.api_allowed.title'),
'desc' => lng('usersettings.api_allowed.description'), 'desc' => lng('usersettings.api_allowed.description'),

View File

@@ -50,20 +50,20 @@ return [
'callback' => [Email::class, 'account'], 'callback' => [Email::class, 'account'],
], ],
'm.spam_tag_level' => [ 'm.spam_tag_level' => [
'label' => lng('emails.spam_tag_level'), 'label' => lng('antispam.spam_tag_level.title'),
'field' => 'spam_tag_level', 'field' => 'spam_tag_level',
], ],
'm.spam_kill_level' => [ 'm.spam_kill_level' => [
'label' => lng('emails.spam_kill_level'), 'label' => lng('antispam.spam_kill_level.title'),
'field' => 'spam_kill_level', 'field' => 'spam_kill_level',
], ],
'm.bypass_spam' => [ 'm.bypass_spam' => [
'label' => lng('emails.bypass_spam'), 'label' => lng('antispam.bypass_spam.title'),
'field' => 'bypass_spam', 'field' => 'bypass_spam',
'callback' => [Text::class, 'boolean'], 'callback' => [Text::class, 'boolean'],
], ],
'm.policy_greylist' => [ 'm.policy_greylist' => [
'label' => lng('emails.policy_greylist'), 'label' => lng('antispam.policy_greylist.title'),
'field' => 'policy_greylist', 'field' => 'policy_greylist',
'callback' => [Text::class, 'boolean'], 'callback' => [Text::class, 'boolean'],
], ],

View File

@@ -613,11 +613,11 @@ return [
'description' => 'Achtung: Änderungen sind nur für neue Schlüssel gültig.<br/><br/>Erfordert einen speziellen DNS Eintrag für die Domain. Wenn das Nameserver-Feature nicht genutzt wird, muss dieser Eintrag manuell verwaltet werden.', 'description' => 'Achtung: Änderungen sind nur für neue Schlüssel gültig.<br/><br/>Erfordert einen speziellen DNS Eintrag für die Domain. Wenn das Nameserver-Feature nicht genutzt wird, muss dieser Eintrag manuell verwaltet werden.',
], ],
'spam_tag_level' => [ 'spam_tag_level' => [
'title' => 'Spam Markierungs-Level', 'title' => 'Spam Level',
'description' => 'Erforderliche Punktzahl zum Markieren einer E-Mail als Spam<br/>Standard: 7.0' 'description' => 'Erforderliche Punktzahl zum Markieren einer E-Mail als Spam<br/>Standard: 7.0'
], ],
'spam_kill_level' => [ 'spam_kill_level' => [
'title' => 'Spam Ignorier-Level', 'title' => 'Ablehnungs Level',
'description' => 'Erforderliche Punktzahl für das Ablehnen einer E-Mail<br/>Standard: 14.0' 'description' => 'Erforderliche Punktzahl für das Ablehnen einer E-Mail<br/>Standard: 14.0'
], ],
'bypass_spam' => [ 'bypass_spam' => [
@@ -2231,6 +2231,10 @@ Vielen Dank, Ihr Administrator',
'description' => 'Wenn in den Einstellungen aktiviert, kann der Benutzer API Schlüssel erstellen und auf die froxlor API Zugreifen', 'description' => 'Wenn in den Einstellungen aktiviert, kann der Benutzer API Schlüssel erstellen und auf die froxlor API Zugreifen',
'notice' => 'API Zugriff ist für dieses Konto deaktiviert.', 'notice' => 'API Zugriff ist für dieses Konto deaktiviert.',
], ],
'gui_access' => [
'title' => 'WebUI-Anmeldung zulassen',
'description' => 'Wenn diese Option deaktiviert ist, kann sich der Benutzer nicht bei der Froxlor-Weboberfläche anmelden, aber alle Dienste (Web, FTP, E-Mail, Datenbanken, API-Zugriff, usw.) funktionieren normal.',
],
], ],
'install' => [ 'install' => [
'preflight' => 'System-Prüfung', 'preflight' => 'System-Prüfung',

View File

@@ -2366,6 +2366,10 @@ Yours sincerely, your administrator',
'description' => 'When enabled in the settings, this user can create API keys and access the froxlor API', 'description' => 'When enabled in the settings, this user can create API keys and access the froxlor API',
'notice' => 'API access is not allowed for your account.', 'notice' => 'API access is not allowed for your account.',
], ],
'gui_access' => [
'title' => 'Allow WebUI login',
'description' => 'When disabled, the user cannot log in to the froxlor web-ui but all the services (web, ftp, mail, databases, api-access, etc.) will work normally.',
],
], ],
'install' => [ 'install' => [
'slogan' => 'froxlor Server Management Panel', 'slogan' => 'froxlor Server Management Panel',