Re: [python-cn:12573] django---如何实现注册用户的电子邮件验证

18 views
Skip to first unread message

憨狗

unread,
Jul 16, 2006, 10:54:40 AM7/16/06
to pyth...@googlegroups.com, django

我说说我的思路吧:
使用User.create_user()添加用户的时候把is_active设为False。
然后发送一个带有激活连接的mail,进行激活并设置is_active。
在login的时候,使用AuthenticationForm作为manipulator,它会同时验证password和
is_active的:这一步很关键。

404898536 wrote:
> 如何实现注册用户的电子邮件验证
> 当用户注册完成之后,提示用户
> 必须到注册所用的电子邮件地址激活才能生效
> 请问如何实现??
> 发愁中...........
>
> >

--
初从文,三年不中; 后习武,校场发一矢,中鼓吏,逐之出; 遂学医,有所成。 自撰一良方,服之,卒
个人blog: http://hackgou.itbbq.com
Email/Skype/MSN/QQ/Gtalk : HackGou#Gmail.com
PGP KeyID: hackgou AT Gmail.com
PGP KeyServ: subkeys.pgp.net

Reply all
Reply to author
Forward
0 new messages