fix: params logging

This commit is contained in:
loks0n
2024-10-11 13:40:01 +01:00
parent 290ebbfc33
commit c7e693f479
6 changed files with 45 additions and 0 deletions
+2
View File
@@ -1647,6 +1647,7 @@ App::patch('/v1/projects/:projectId/smtp')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_PROJECT)
->label('sensitive', ['senderName', 'senderEmail', 'replyTo', 'host', 'port', 'username', 'password'])
->param('projectId', '', new UID(), 'Project unique ID.')
->param('enabled', false, new Boolean(), 'Enable custom SMTP service')
->param('senderName', '', new Text(255, 0), 'Name of the email sender', true)
@@ -1736,6 +1737,7 @@ App::post('/v1/projects/:projectId/smtp/tests')
->label('sdk.method', 'createSmtpTest')
->label('sdk.response.code', Response::STATUS_CODE_NOCONTENT)
->label('sdk.response.model', Response::MODEL_NONE)
->label('sensitive', ['senderName', 'senderEmail', 'replyTo', 'host', 'port', 'username', 'password'])
->param('projectId', '', new UID(), 'Project unique ID.')
->param('emails', [], new ArrayList(new Email(), 10), 'Array of emails to send test email to. Maximum of 10 emails are allowed.')
->param('senderName', System::getEnv('_APP_SYSTEM_EMAIL_NAME', APP_NAME . ' Server'), new Text(255, 0), 'Name of the email sender')