Page 2 of 3

Re: One Time Password

Posted: Wed Nov 30, 2011 10:31 am
by ebgames56
but if i sent them that link, they would be able to download more than once. and send it to other people. i dont want that

Re: One Time Password

Posted: Wed Nov 30, 2011 10:32 am
by Celauran
Are you already processing payments through PayPal?

Re: One Time Password

Posted: Wed Nov 30, 2011 10:32 am
by Celauran
ebgames56 wrote:but if i sent them that link, they would be able to download more than once. and send it to other people. i dont want that
How do you figure? Once the token has been used, you update the database to reject it.

Re: One Time Password

Posted: Wed Nov 30, 2011 10:34 am
by ebgames56
but i dont wnat to do that manually, im going to have thousands of people downloading this album

Re: One Time Password

Posted: Wed Nov 30, 2011 10:39 am
by Celauran
Do what manually? Why would you have to do anything manually?

Re: One Time Password

Posted: Wed Nov 30, 2011 10:40 am
by ebgames56
update database you said

Re: One Time Password

Posted: Wed Nov 30, 2011 10:41 am
by ebgames56
how do i make tokens

Re: One Time Password

Posted: Wed Nov 30, 2011 10:53 am
by Celauran
ebgames56 wrote:update database you said
Clearly, you'd have your PHP script do that for you.

Re: One Time Password

Posted: Wed Nov 30, 2011 10:55 am
by Celauran
ebgames56 wrote:how do i make tokens
Probably easiest would be to use a hash of the customer's info. md5 of his email + time() or some such should suffice.

Re: One Time Password

Posted: Wed Nov 30, 2011 10:56 am
by ebgames56
i think ill stick with my database with the code i have so far. i just want the text box be able to login with the code i already have in the database

Re: One Time Password

Posted: Wed Nov 30, 2011 10:57 am
by ebgames56
its just not letting me in with the code i have in the database

Re: One Time Password

Posted: Wed Nov 30, 2011 10:59 am
by Celauran
I already pointed out a bunch of errors in the code you posted earlier. Have you corrected those yet?

Re: One Time Password

Posted: Wed Nov 30, 2011 11:02 am
by ebgames56
i didnt see the code

Re: One Time Password

Posted: Wed Nov 30, 2011 11:04 am
by ebgames56
you said in post that i have if ($peanut == $password)

but i dont have it declared so it wont work

Re: One Time Password

Posted: Wed Nov 30, 2011 11:14 am
by ebgames56
can you post the errors i should correct please