Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
🚸 Do not sanitize emails to allow multiple GMail aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasrohmer committed Nov 16, 2021
1 parent baddc99 commit b0164f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Validators/AuthLoginValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}),
]),

Expand Down
2 changes: 1 addition & 1 deletion app/Validators/AuthRegisterValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' }),
]),
Expand Down

0 comments on commit b0164f6

Please sign in to comment.