pennersr / django-allauth

Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.
https://allauth.org
MIT License
9.43k stars 3.02k forks source link

Report when register not validated email #3829

Closed CARocha closed 4 months ago

CARocha commented 4 months ago

Hi, I used Django 5.x and allauthh 0.61.1 but when a register not validated the email for example a put pepe1@example.comm (you double mm) is accepted why?

Thanks

pennersr commented 4 months ago

That is regular Django behavior:

>>> from django.core.validators import validate_email
>>> validate_email("pepe1@example.comm")
# No ValidationError is thrown

You could hookup something like this https://gist.github.com/dokterbob/876648/22fe8830c7beb419c02060ffa2658749d94d4b6d to the clean_email() adapter method.