gpt4 book ai didi

python - Wagtail:使用电子邮件创建注册页面并验证

转载 作者:行者123 更新时间:2023-11-28 18:25:53 24 4
gpt4 key购买 nike

我如何通过电子邮件添加指向带有登录的页面的链接,然后发送验证电子邮件?我想将用户添加到 Wagtail,创建组,使用用户名的站点。为什么 Wagtail 没有该成员(member)网站的模块?

最佳答案

我知道这篇文章有点旧,但应该更新一下。 Wagtail 使用 django 的内置身份验证 View 。

Wagtail uses Django’s standard django.contrib.auth.views.LoginView view here, and so the context variables available on the template are as detailed in Django's login view documentation.

http://docs.wagtail.io/en/v2.6.1/advanced_topics/privacy.html#setting-up-a-login-page

也就是说,它应该非常简单。像往常一样为 Django 项目设置身份验证,并制作您自己的模板。

https://docs.djangoproject.com/en/2.2/topics/auth/default/#using-the-django-authentication-system

关于python - Wagtail:使用电子邮件创建注册页面并验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41537817/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com