Change django-allauth email verification behaivior

淺唱寂寞╮ 提交于 2020-08-10 20:13:14

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!