Help for Forgot password API in php

For general discussion of the Poker Mavens software

Help for Forgot password API in php

Postby azirus » Sat May 29, 2010 1:49 pm

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
azirus
 
Posts: 1
Joined: Sat May 29, 2010 1:44 pm

Re: Help for Forgot password API in php

Postby Kent Briggs » Sat May 29, 2010 2:10 pm

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.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3763
Joined: Wed Mar 19, 2008 8:47 pm


Return to General

Who is online

Users browsing this forum: Bing [Bot] and 4 guests

cron