作者alpe (薛丁格的猫)
看板PHP
标题Re: [请益] 如何设计启用mail认证?
时间Wed Mar 21 11:27:06 2007
※ 引述《pizfinfin (卡拉猫)》之铭言:
: 请教各位先进
: 如何设计在使用者加入会员後会收到一封mail..
: 然後再点选mail上的连结..达成启用会员的功能?
: 能否给点提示?感激不尽
在 user table 给个 2 tag
actived boolean
act_code char(64)
1. 申请会员
actived = 0
act_code = md5(user_id . microtime() );
2. email
"act.php?id=". $user_id. "&act=". $act_code
3. act.php
验正 id & act_code
if(true)
actived = 1
else
actived = 0
--
Exactly. For that one fraction of a second, you were open to options
you had never considered. THAT is the exploration that awaits you:
not mapping stars and studying nebulae,but
charting the unknown possibilities of existence.
Star Trek S7E26 "All Good Thing"
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 203.67.68.236
1F:推 pizfinfin:感激不尽..我会再努力try它.. 03/22 16:54