问题
Django has builtin User model is_active
field. I assume that django-allauth sets this field to True after successful e-mail verification.
I would manually enable the user and change this field to "true" via the Django admin interface instead. Is it possible to change this behavior from django-allauth?
回答1:
is_active
is, like you mentioned, used to determine whether its an active account, and can be flipped to False
instead of deleting the acccount. But I don't think all-auth does anything with this value, it is automatically set to True
when you create a User
object.
What you are looking for is in a separate table, usually "email_addresses". This will show which email addresses have been verified.
来源:https://stackoverflow.com/questions/63133088/change-django-allauth-email-verification-behaivior