9

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?

Pouya Samie
  • 3,718
  • 1
  • 21
  • 34
merry-go-round
  • 4,533
  • 10
  • 54
  • 102

2 Answers2

16

In settings.py add:

ACCOUNT_EMAIL_VERIFICATION = 'none'

It will not send any email for verification.

Reference: django-allauth Configuration.

Piyush Maurya
  • 1,945
  • 16
  • 26
9

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

Sascha Rau
  • 357
  • 3
  • 12
  • 1
    `optional` only makes the verification not required but allauth still sends the email. `none` should be used to completely disable it. – SoroushA Aug 04 '20 at 16:57