Turn off user social registration in django-allauth?

半城伤御伤魂 提交于 2019-11-30 21:06:34

Looks like you need to override is_open_for_signup on your adapter.

See the code.

More information at http://django-allauth.readthedocs.io/en/latest/advanced.html#custom-redirects.

You need to subclass allauth.account.adapter.DefaultAccountAdapter to override is_open_for_signup, and then set ACCOUNT_ADAPTER to your class in settings.py

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