django-allauth: How to set user to active only after e-mail verification

前端 未结 3 1350
谎友^
谎友^ 2021-02-06 13:12

I\'m using django-allauth primarily as a way to create user accounts for the admin backend. What I would like to have happen is:

1) When a user goes through the sign up

3条回答
  •  终归单人心
    2021-02-06 13:50

    ACCOUNT_EMAIL_VERIFICATION (=”optional”) Determines the e-mail verification method during signup – choose one of “mandatory”, “optional”, or “none”. When set to “mandatory” the user is blocked from logging in until the email address is verified. Choose “optional” or “none” to allow logins with an unverified e-mail address. In case of “optional”, the e-mail verification mail is still sent, whereas in case of “none” no e-mail verification mails are sent.

提交回复
热议问题