mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Cleanup Logger a bit
This commit is contained in:
parent
f105ed3f9d
commit
0914ede3a3
3 changed files with 4 additions and 4 deletions
|
|
@ -37,8 +37,6 @@ trait User
|
||||||
$sEmail = \MailSo\Base\Utils::Trim($this->GetActionParam('Email', ''));
|
$sEmail = \MailSo\Base\Utils::Trim($this->GetActionParam('Email', ''));
|
||||||
$sPassword = $this->GetActionParam('Password', '');
|
$sPassword = $this->GetActionParam('Password', '');
|
||||||
|
|
||||||
$this->logMask($sPassword);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$oAccount = $this->LoginProcess($sEmail, $sPassword);
|
$oAccount = $this->LoginProcess($sEmail, $sPassword);
|
||||||
} catch (\Throwable $oException) {
|
} catch (\Throwable $oException) {
|
||||||
|
|
|
||||||
|
|
@ -124,6 +124,8 @@ trait UserAuth
|
||||||
{
|
{
|
||||||
$sInputEmail = $sEmail;
|
$sInputEmail = $sEmail;
|
||||||
|
|
||||||
|
$this->logMask($sPassword);
|
||||||
|
|
||||||
$sLogin = '';
|
$sLogin = '';
|
||||||
$this->resolveLoginCredentials($sEmail, $sPassword, $sLogin);
|
$this->resolveLoginCredentials($sEmail, $sPassword, $sLogin);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -126,11 +126,11 @@ class ServiceActions
|
||||||
case 'DoLogin':
|
case 'DoLogin':
|
||||||
case 'DoAdminLogin':
|
case 'DoAdminLogin':
|
||||||
case 'DoAccountAdd':
|
case 'DoAccountAdd':
|
||||||
$this->Logger()->AddSecret($this->oActions->GetActionParam('Password', ''));
|
$this->oActions->logMask($this->oActions->GetActionParam('Password', ''));
|
||||||
break;
|
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()) {
|
} else if (3 < \count($this->aPaths) && $this->oHttp->IsGet()) {
|
||||||
$this->oActions->SetActionParams(array(
|
$this->oActions->SetActionParams(array(
|
||||||
'RawKey' => empty($this->aPaths[3]) ? '' : $this->aPaths[3]
|
'RawKey' => empty($this->aPaths[3]) ? '' : $this->aPaths[3]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue