Skip to content

Commit

Permalink
fix: reject utf8 emails in transactional endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
KishenKumarrrrr committed Aug 7, 2024
1 parent 74d6f64 commit f2ab76d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/email/routes/email-transactional.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ export const InitEmailTransactionalRoute = (
const sendValidator = {
[Segments.BODY]: Joi.object({
recipient: Joi.string()
.email()
.email({
allowUnicode: false,
})
.options({ convert: true })
.lowercase()
.required(),
Expand Down

0 comments on commit f2ab76d

Please sign in to comment.