在django-allauth关闭用户社会注册? [英] Turn off user social registration in django-allauth?

查看:113
本文介绍了在django-allauth关闭用户社会注册?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到通过django-allauth模板查看了一个signup_closed.html用户注册关闭或禁用时可以将其重定向到。熟悉该模块的人是否知道是否可以在settings.py中设置预先配置的设置,以便通过现有的社交应用程序关闭新的用户注册?还是需要自己配置?我已经阅读了allauth的完整文档,我没有看到任何提及。谢谢。

I noticed looking through the django-allauth templates there's a signup_closed.html users can be redirected to when user registration is closed or disabled. Does anyone who's familiar with that module know if there's a pre-configured setting that can be set in settings.py to turn off new user registration via existing social apps? Or do I need to configure that myself? I've read the full docs for allauth and I don't see any mention of it. Thanks.

推荐答案

看起来您需要覆盖适配器上的 is_open_for_signup

Looks like you need to override is_open_for_signup on your adapter.

请参阅代码

这篇关于在django-allauth关闭用户社会注册?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆