Search code examples
pythondjangoauthenticationoauth-2.0django-allauth

django-allauth: verifying email only on non social signup


I'm using django-allauth plugin. It allows to configure the email verification through the ACCOUNT_EMAIL_VERIFICATION setting variable, but it doesn't differentiate between normal and social signup. I would like to verify the email only when registering via normal signup, and don't verify it when it is submitted via social signup. Is it possible? how can I do it?


Solution

  • it seems that the doc says

    SOCIALACCOUNT_EMAIL_VERIFICATION (=ACCOUNT_EMAIL_VERIFICATION) As ACCOUNT_EMAIL_VERIFICATION, but for social accounts.

    if you set this one, django-allauth may do the difference when the user logs in

    did you try it too ?