Django-allauth注册的白名单特定用户

时间:2015-12-01 18:52:23

标签: python django django-allauth python-social-auth

django-allauth与网站集成后,任何人都可以通过点击社交应用登录或直接注册来注册。如何才能让特定用户注册?

在搜索django-allauth文档后,我没有找到任何相关的配置。但是,python-social-auth提供了下面问题中描述的WhiteList。

Specifying whitelist of domain names still allows others to authenticate with python social auth and django

1 个答案:

答案 0 :(得分:0)

按照django-allauth: Only allow users from a specific google apps domain

的类似方法解决

注意:如果您关闭本地帐户注册,则必须单独启用社交注册!