简体   繁体   English

使用django-email-login进行身份验证但禁用电子邮件验证

[英]Using django-email-login for authentication but disabling email verification

Regarding the django-email-login app, how do i get it not to require email verification by the user? 关于django-email-login应用程序,我如何不要求用户进行电子邮件验证? I find that this extra activity that the user has to go through by logging into their email account to validate their email could reduce signups. 我发现用户必须通过登录其电子邮件帐户来验证其电子邮件来完成的这项额外活动可以减少注册。

I assume you are referring to this django-email-login: https://bitbucket.org/jokull/django-email-login/src , and not my django-email-login: https://bitbucket.org/tino/django-email-login/overview , (sorry for the confusion, I hadn't seen his repo until I bumped into this question and started searching) as I don't do any signup. 我假设您是指django-email-login: https : //bitbucket.org/jokull/django-email-login/src ,而不是我的django-email-login: https : //bitbucket.org/tino/ django-email-login / overview ,(我很困惑,在遇到这个问题并开始搜索之前,我还没有看到他的仓库),因为我没有进行任何注册。

However I would like to advice you that you might be more likely to get an answer when you post your question as an issue on bitbucket, as there people that use the app will actually see it. 但是,我想建议您,当您将问题作为问题发布到Bitbucket上时,您可能更容易获得答案,因为使用该应用程序的人实际上会看到它。

From a quick look at the code I would say you need to write your own RegistrationBackend, one that doesn't need validation. 快速浏览一下代码,我会说您需要编写自己的RegistrationBackend,这不需要验证。 The backend used in jokull's code is actually the one from django-registration, so you should take that as an example. jokull代码中使用的后端实际上是django-registration中的后端,因此您应该以该示例为例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM