Django注册 - 一些激活 [英] Django-registration - some activation

查看:157
本文介绍了Django注册 - 一些激活的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何强制重新发送激活电子邮件给用户?例如。当他意外地删除邮件时,他点击了我的网站链接,并且django将向他发送新的激活电子邮件。

How can I force resending activation e-mail to user? E.g. when he accidentaly deletes the mail, he clicks in link in my website, and django will send him new activation e-mail.

推荐答案

这样做有一个管理操作。从 django注册文件


如何重新发送激活电子邮件?

假设您正在使用默认后端,则会为此提供自定义管理操作;在RegistrationProfile模型的管理员中,只需点击您要重新发送电子邮件的用户的复选框,然后选择重新发送激活电子邮件操作。

Assuming you’re using the default backend, a custom admin action is provided for this; in the admin for the RegistrationProfile model, simply click the checkbox for the user(s) you’d like to re-send the email for, then select the "Re-send activation emails" action.

没有内置的自动方法(django注册如何知道随机访问者是3天前填写注册表的那个人,删除他的激活邮件?)。

There's no built-in automatic way of doing this (how should django-registration figure out that a random visitor is that guy who filled out the registration form 3 days ago and deleted his activation mail?).

这篇关于Django注册 - 一些激活的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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