6
votes

I'm using all-auth (all-auth-rest) for basic authorization/authentication. By default, when the user register, Django all-auth is trying to send a verification email.

How can I disable it to prevent it from sending a verification email?

2
I think, ACCOUNT_EMAIL_VERIFICATION = 'none' or 'optional' in settings.pySascha Rau
You're right. Thanks :) Do you want to answer this question and get reputation point?hellofanengineer
none does not send any email for verification, optional send verification email, but verification is not necessary to login, which means user can login without clicking on email.Piyush Maurya

2 Answers

9
votes

In settings.py add:

ACCOUNT_EMAIL_VERIFICATION = 'none'

It will not send any email for verification.

Reference: django-allauth Configuration.

8
votes

I think, ACCOUNT_EMAIL_VERIFICATION = 'none' or 'optional' in settings.py