Tuesday, March 9, 2021

Re: Add user email verification to custom user model

On 09/03/2021 17.22, Gabriel Araya Garcia wrote:
> Your ask is not clear,..What is wrong ? What is the error message? If
> you need validate the email format, here is one javascript example :
>

Actually, it is far from trivial or close to impossible to correctly
validate an email address using, eg. a regular expression:

https://emailregex.com/

The best you can do is to try to send an email to whatever is provided
and ask the user to confirm which seems to be what Manuel is trying to
do, although I agree that was far from clear in the original question.

Kind regards,

Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d89dc3a4-8f17-0d32-bf40-c0db71885b5f%40stacktrace.dk.

No comments:

Post a Comment