mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-28 14:55:48 +00:00
Cleanup Logger a bit
This commit is contained in:
@@ -37,8 +37,6 @@ trait User
|
||||
$sEmail = \MailSo\Base\Utils::Trim($this->GetActionParam('Email', ''));
|
||||
$sPassword = $this->GetActionParam('Password', '');
|
||||
|
||||
$this->logMask($sPassword);
|
||||
|
||||
try {
|
||||
$oAccount = $this->LoginProcess($sEmail, $sPassword);
|
||||
} catch (\Throwable $oException) {
|
||||
|
||||
@@ -124,6 +124,8 @@ trait UserAuth
|
||||
{
|
||||
$sInputEmail = $sEmail;
|
||||
|
||||
$this->logMask($sPassword);
|
||||
|
||||
$sLogin = '';
|
||||
$this->resolveLoginCredentials($sEmail, $sPassword, $sLogin);
|
||||
|
||||
|
||||
@@ -126,11 +126,11 @@ class ServiceActions
|
||||
case 'DoLogin':
|
||||
case 'DoAdminLogin':
|
||||
case 'DoAccountAdd':
|
||||
$this->Logger()->AddSecret($this->oActions->GetActionParam('Password', ''));
|
||||
$this->oActions->logMask($this->oActions->GetActionParam('Password', ''));
|
||||
break;
|
||||
}
|
||||
*/
|
||||
$this->Logger()->Write(Utils::jsonEncode($aPost), \LOG_INFO, 'POST', true);
|
||||
$this->Logger()->Write(Utils::jsonEncode($aPost), \LOG_INFO, 'POST');
|
||||
} else if (3 < \count($this->aPaths) && $this->oHttp->IsGet()) {
|
||||
$this->oActions->SetActionParams(array(
|
||||
'RawKey' => empty($this->aPaths[3]) ? '' : $this->aPaths[3]
|
||||
|
||||
Reference in New Issue
Block a user