msrumon / xpresson

Blogging matters.
https://xpresson.msrumon.com
MIT License
2 stars 1 forks source link

'@' while validating empty email fields #1

Open msrumon opened 3 years ago

msrumon commented 3 years ago

Passing empty data to email fields returns @ sign when validation is failed. This happens while chaining normalizeEmail() with the validation rules. Since express-validator uses validator library under the hood, it may be coming from that library. But why would the library put '@' sign for empty email fields?

msrumon commented 3 years ago

For now, I have temporarily removed this sanitizer in abc29ff, until I find the solution.