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, {
|
||||
method: 'POST',
|
||||
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(() => {});
|
||||
return genericResponse(STATUS_CODE.PreconditionFailed, `Please resubmit with the confirmation code emailed to "${maskedEmail}".`);
|
||||
} else if (hasEmail && body.deleteCode !== deleteCode) {
|
||||
|
||||
Reference in New Issue
Block a user