From b0164f6ca23491108fcdcf31a92e9e8c2f5be116 Mon Sep 17 00:00:00 2001 From: Matthias Rohmer Date: Tue, 16 Nov 2021 11:07:03 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Do=20not=20sanitize=20emails=20t?= =?UTF-8?q?o=20allow=20multiple=20GMail=20aliases?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Validators/AuthLoginValidator.ts | 2 +- app/Validators/AuthRegisterValidator.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Validators/AuthLoginValidator.ts b/app/Validators/AuthLoginValidator.ts index 60ca5c7a..116d75f4 100644 --- a/app/Validators/AuthLoginValidator.ts +++ b/app/Validators/AuthLoginValidator.ts @@ -7,7 +7,7 @@ export default class AuthLoginValidator { public schema = schema.create({ email: schema.string({ escape: true, trim: true }, [ rules.email({ - sanitize: true, + sanitize: false, }), ]), diff --git a/app/Validators/AuthRegisterValidator.ts b/app/Validators/AuthRegisterValidator.ts index 68ce2db6..c1654e71 100644 --- a/app/Validators/AuthRegisterValidator.ts +++ b/app/Validators/AuthRegisterValidator.ts @@ -7,7 +7,7 @@ export default class UserStoreValidator { public schema = schema.create({ email: schema.string({ escape: true, trim: true }, [ rules.email({ - sanitize: true, + sanitize: false, }), rules.unique({ table: 'users', column: 'email' }), ]),