mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 14:37:02 +03:00
Rename fail2ban syslog 'rainloop' to 'snappymail'
This commit is contained in:
parent
0a95e2c6dc
commit
98c6fa0675
10 changed files with 21 additions and 21 deletions
|
|
@ -958,7 +958,7 @@ class Actions
|
|||
{
|
||||
$this->LoggerAuth()->Write($this->compileLogParams($sLine, $oAccount, false, $aAdditionalParams));
|
||||
}
|
||||
if ($this->Config()->Get('logs', 'auth_logging', false) && \openlog('rainloop', 0, \LOG_AUTHPRIV))
|
||||
if ($this->Config()->Get('logs', 'auth_logging', false) && \openlog('snappymail', 0, \LOG_AUTHPRIV))
|
||||
{
|
||||
\syslog(\LOG_ERR, $this->compileLogParams('Auth failed: ip={request:ip} user={imap:login}', $oAccount, false, $aAdditionalParams));
|
||||
\closelog();
|
||||
|
|
|
|||
|
|
@ -213,7 +213,7 @@ trait Admin
|
|||
$this->LoggerAuthHelper(null, $this->getAdditionalLogParamsByUserLogin($sLogin, true));
|
||||
if ($this->Config()->Get('logs', 'auth_logging', false)
|
||||
&& $this->Config()->Get('security', 'allow_admin_panel', true)
|
||||
&& \openlog('rainloop', 0, \LOG_AUTHPRIV))
|
||||
&& \openlog('snappymail', 0, \LOG_AUTHPRIV))
|
||||
{
|
||||
\syslog(\LOG_ERR, $this->compileLogParams('Admin Auth failed: ip={request:ip} user='.$sLogin));
|
||||
\closelog();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue