Cleanup Logger a bit

This commit is contained in:
the-djmaze
2024-02-03 12:28:06 +01:00
parent f105ed3f9d
commit 0914ede3a3
3 changed files with 4 additions and 4 deletions

View File

@@ -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) {

View File

@@ -124,6 +124,8 @@ trait UserAuth
{
$sInputEmail = $sEmail;
$this->logMask($sPassword);
$sLogin = '';
$this->resolveLoginCredentials($sEmail, $sPassword, $sLogin);

View File

@@ -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]