Page 1 of 1

Help for Forgot password API in php

Posted: Sat May 29, 2010 1:49 pm
by azirus
Hy,

can you help me how to create API code for forgot password in Poker Mavens with PHP language. Can you give example how to create this?

Thanks

Re: Help for Forgot password API in php

Posted: Sat May 29, 2010 2:10 pm
by Kent Briggs
azirus wrote: can you help me how to create API code for forgot password in Poker Mavens with PHP language. Can you give example how to create this?
There's an "Allow password recovery" function (Account Settings) already built into the program so you could just use that. I haven't written any PHP code to do it manually but the basic steps would be something like this:

Display an HTML form to prompt the player for their screen name.
Call the AccountsGet command using the API to retrieve the email address and password for that name.
Use the PHP mail() command to send that password to their email.
Display a message telling them that their password was sent to the email address on file for that account.