mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
Rename application.ini [labs]login_fault_delay to [login]fault_delay
This commit is contained in:
parent
aaae0a314c
commit
17fc37975c
2 changed files with 8 additions and 3 deletions
|
|
@ -772,7 +772,7 @@ class Actions
|
||||||
|
|
||||||
protected function loginErrorDelay(): void
|
protected function loginErrorDelay(): void
|
||||||
{
|
{
|
||||||
$iDelay = (int) $this->oConfig->Get('labs', 'login_fault_delay', 0);
|
$iDelay = (int) $this->oConfig->Get('login', 'fault_delay', 0);
|
||||||
if (0 < $iDelay) {
|
if (0 < $iDelay) {
|
||||||
$seconds = $iDelay - (\microtime(true) - $_SERVER['REQUEST_TIME_FLOAT']);
|
$seconds = $iDelay - (\microtime(true) - $_SERVER['REQUEST_TIME_FLOAT']);
|
||||||
if (0 < $seconds) {
|
if (0 < $seconds) {
|
||||||
|
|
|
||||||
|
|
@ -128,6 +128,10 @@ class Application extends \RainLoop\Config\AbstractConfig
|
||||||
$sSectionKey = 'imap';
|
$sSectionKey = 'imap';
|
||||||
$sParamKey = 'fetch_new_messages';
|
$sParamKey = 'fetch_new_messages';
|
||||||
}
|
}
|
||||||
|
if ('login_fault_delay' === $sParamKey) {
|
||||||
|
$sSectionKey = 'login';
|
||||||
|
$sParamKey = 'fault_delay';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
parent::Set($sSectionKey, $sParamKey, $mParamValue);
|
parent::Set($sSectionKey, $sParamKey, $mParamValue);
|
||||||
}
|
}
|
||||||
|
|
@ -289,7 +293,9 @@ once they closed the browser window.
|
||||||
Values:
|
Values:
|
||||||
"DefaultOff" - can be used, disabled by default;
|
"DefaultOff" - can be used, disabled by default;
|
||||||
"DefaultOn" - can be used, enabled by default;
|
"DefaultOn" - can be used, enabled by default;
|
||||||
"Unused" - cannot be used')
|
"Unused" - cannot be used'),
|
||||||
|
|
||||||
|
'fault_delay' => array(5, 'When login fails, wait N seconds before responding'),
|
||||||
),
|
),
|
||||||
|
|
||||||
'plugins' => array(
|
'plugins' => array(
|
||||||
|
|
@ -416,7 +422,6 @@ Enables caching in the system'),
|
||||||
|
|
||||||
'labs' => array(
|
'labs' => array(
|
||||||
'allow_message_append' => array(false, 'Allow drag & drop .eml files from system into messages list'),
|
'allow_message_append' => array(false, 'Allow drag & drop .eml files from system into messages list'),
|
||||||
'login_fault_delay' => array(5, 'When login fails, wait N seconds before responding'),
|
|
||||||
'log_ajax_response_write_limit' => array(300),
|
'log_ajax_response_write_limit' => array(300),
|
||||||
'smtp_show_server_errors' => array(false),
|
'smtp_show_server_errors' => array(false),
|
||||||
'mail_func_clear_headers' => array(true, 'PHP mail() remove To and Subject headers'),
|
'mail_func_clear_headers' => array(true, 'PHP mail() remove To and Subject headers'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue