Help for Forgot password API in php

For general discussion of the Poker Mavens software
Post Reply
azirus
Posts: 1
Joined: Sat May 29, 2010 1:44 pm

Help for Forgot password API in php

Post 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
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Help for Forgot password API in php

Post 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.
Post Reply