DefGuard / defguard

The only _real_ 2FA MFA WireGuard Enterprise VPN with build-in SSO, hardware keys management and more!
https://defguard.net
Other
1.02k stars 34 forks source link

Email validation #550

Closed zvana closed 3 weeks ago

zvana commented 6 months ago

You can set an email with whitespace before the text and it doesn't alert you for incorrect format neigher it's not trimmed. When you try to send the enrollment email, it's not sent to the correct email. So it should at least check it or ideally trimm it. It can also report if the email can't be delivered due to invalid email address.

teon commented 6 months ago

@filipslezaklab you're rewriting forms in new release - please double check this bug.

teon commented 6 months ago

@filipslezaklab still not fixed:

Screenshot 2024-02-28 at 11 10 08
teon commented 5 months ago

Implement either default ZOD validator, or connect isEmail from 'validation' lib