random password可以存在user 的table里面,如果要知道谁用random password, 谁已经reset password,可以在user的table里面加个status的field来区别它们。这个是比较简单的方法作者: 无风格D 时间: 2011-6-16 10:07 PM
actually你可以让他们自己选择他们要的密码,
然后你可以选择使用权限设置,
这样其实比较方便。=)作者: Jack1826 时间: 2011-6-16 10:09 PM
before you send the random password, you need keep a copy to your database.
when the n-user to verify, need to key in the password and ID ,so you can match the password with your database.作者: xbluelover 时间: 2011-6-16 10:33 PM 回复 2#leon_lcl
database 里有‘password’这个field吗?
就是如果说example,
admin需要把那个付了钱的人的status retrieve 出来
update他
然后create random password 在他的row,
再store进去database?
就是说
in the database, i will have 1 more field call "password", but before they make payment, the field wil be empty
but after they have make the payment,
admin will retrieve the person ID and use php to generate a random password and store back into databse? 作者: leon_lcl 时间: 2011-6-16 10:58 PM
你的database里面应该有个table是save user的information和id吧?你create random password了就存在那里,过后user login的时候就能match了作者: syid 时间: 2011-6-16 11:05 PM
In the first place, how do you want to build the payment module?
They must login to make payment (Most of the web site does this), right?
If that is the case, they would already have account (username and password), isn't?
By right, usershould be able to register and login to make payment by themselves.
Difference is after making payment, the course booking module will be emabled (can be accessed by user).作者: xbluelover 时间: 2011-6-16 11:07 PM 回复 7#leon_lcl
好的我大概抓到了~
现在就是coding部分了~
谢谢哦
我能再问一个吗?
比如说admin能edit user的information
我retrieve user 的information 出来后
edit它~是save and update 回去original 我retrieve的地方对吧
如果我save进去另一个table就等于是duplicate 了是吗?
But the requirement is,
we can ignore the payment mode, coz they choose to use manual payment (weird right)
so after the payment manually, admin needs to generate random password in order for the customer to login and view the course.作者: leon_lcl 时间: 2011-6-16 11:29 PM 回复 9#xbluelover
Then, i think someone has already answered your question about how to match the randomly generated password in database.
Now it is left with implementation part. Keep it up and hope you score excellent result作者: 神中神~ 时间: 2011-6-17 02:08 AM
提示: 作者被禁止或删除 内容自动屏蔽作者: xbluelover 时间: 2011-6-17 10:41 AM 回复 12#syid
Haha, thanks if I gt any question I can ask u all again right? 作者: xbluelover 时间: 2011-6-17 10:42 AM 回复 11#leon_lcl
好的~谢谢哦作者: xbluelover 时间: 2011-6-17 10:45 AM 回复 13#神中神~