One Time Password

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

ebgames56
Forum Contributor
Posts: 103
Joined: Thu Oct 06, 2011 10:43 am

Re: One Time Password

Post 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
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: One Time Password

Post by Celauran »

Are you already processing payments through PayPal?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: One Time Password

Post 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.
ebgames56
Forum Contributor
Posts: 103
Joined: Thu Oct 06, 2011 10:43 am

Re: One Time Password

Post by ebgames56 »

but i dont wnat to do that manually, im going to have thousands of people downloading this album
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: One Time Password

Post by Celauran »

Do what manually? Why would you have to do anything manually?
ebgames56
Forum Contributor
Posts: 103
Joined: Thu Oct 06, 2011 10:43 am

Re: One Time Password

Post by ebgames56 »

update database you said
ebgames56
Forum Contributor
Posts: 103
Joined: Thu Oct 06, 2011 10:43 am

Re: One Time Password

Post by ebgames56 »

how do i make tokens
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: One Time Password

Post by Celauran »

ebgames56 wrote:update database you said
Clearly, you'd have your PHP script do that for you.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: One Time Password

Post 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.
ebgames56
Forum Contributor
Posts: 103
Joined: Thu Oct 06, 2011 10:43 am

Re: One Time Password

Post 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
ebgames56
Forum Contributor
Posts: 103
Joined: Thu Oct 06, 2011 10:43 am

Re: One Time Password

Post by ebgames56 »

its just not letting me in with the code i have in the database
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: One Time Password

Post by Celauran »

I already pointed out a bunch of errors in the code you posted earlier. Have you corrected those yet?
ebgames56
Forum Contributor
Posts: 103
Joined: Thu Oct 06, 2011 10:43 am

Re: One Time Password

Post by ebgames56 »

i didnt see the code
ebgames56
Forum Contributor
Posts: 103
Joined: Thu Oct 06, 2011 10:43 am

Re: One Time Password

Post by ebgames56 »

you said in post that i have if ($peanut == $password)

but i dont have it declared so it wont work
ebgames56
Forum Contributor
Posts: 103
Joined: Thu Oct 06, 2011 10:43 am

Re: One Time Password

Post by ebgames56 »

can you post the errors i should correct please
Post Reply