mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-10 15:08:28 +03:00
Log admin login attempt to syslog
This commit is contained in:
parent
b9e8e32579
commit
213f5d183e
1 changed files with 7 additions and 0 deletions
|
|
@ -3214,6 +3214,13 @@ NewThemeLink IncludeCss LoadingDescriptionEsc LangLink IncludeBackground Plugins
|
|||
{
|
||||
$this->loginErrorDelay();
|
||||
$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))
|
||||
{
|
||||
\syslog(\LOG_ERR, $this->compileLogParams('Admin Auth failed: ip={request:ip} user='.$sLogin, $oAccount, false, $aAdditionalParams));
|
||||
\closelog();
|
||||
}
|
||||
throw new Exceptions\ClientException(Notifications::AuthError);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue