escape ***@*** in maskedEmail in discord log
This commit is contained in:
2
mod.ts
2
mod.ts
@@ -139,7 +139,7 @@ Deno.serve({ port: config.api.port }, async (req) => {
|
|||||||
fetch(config.discordWebhook, {
|
fetch(config.discordWebhook, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: discordHeaders,
|
headers: discordHeaders,
|
||||||
body: JSON.stringify({ content: `Delete code email has been sent to ${maskedEmail}` }),
|
body: JSON.stringify({ content: `Delete code email has been sent to \`${maskedEmail}\`.` }),
|
||||||
}).catch(() => {});
|
}).catch(() => {});
|
||||||
return genericResponse(STATUS_CODE.PreconditionFailed, `Please resubmit with the confirmation code emailed to "${maskedEmail}".`);
|
return genericResponse(STATUS_CODE.PreconditionFailed, `Please resubmit with the confirmation code emailed to "${maskedEmail}".`);
|
||||||
} else if (hasEmail && body.deleteCode !== deleteCode) {
|
} else if (hasEmail && body.deleteCode !== deleteCode) {
|
||||||
|
|||||||
Reference in New Issue
Block a user