I have a login problem for version 3.0 Gold

For general discussion of the Poker Mavens software
Post Reply
saintpatrick84
Posts: 5
Joined: Sat Jun 09, 2012 2:06 am

I have a login problem for version 3.0 Gold

Post by saintpatrick84 »

I'm new at poker mavens.
I just bought the gold version.
When i'm using Simple HTML login (from API Examples), it's working correctly,
but when i'm trying to use (SessionKey3.php) example everytime I'm receiving (Password is incorrect) error.
Any hint for that?
Kent Briggs
Site Admin
Posts: 6057
Joined: Wed Mar 19, 2008 8:47 pm

Re: I have a login problem for version 3.0 Gold

Post by Kent Briggs »

saintpatrick84 wrote: When i'm using Simple HTML login (from API Examples), it's working correctly,
but when i'm trying to use (SessionKey3.php) example everytime I'm receiving (Password is incorrect) error.
Any hint for that?
Go into the Windows console of Poker Mavens, click the Accounts tab and then double-click the player you were trying to login. Click the "<" button on the Password line. Enter the same password you were trying to use in the PHP code and click the Verify Only button. Does is show "Password is correct"?
saintpatrick84
Posts: 5
Joined: Sat Jun 09, 2012 2:06 am

Re: I have a login problem for version 3.0 Gold

Post by saintpatrick84 »

Yes, i get Password is Correct.
but again in SessionKey login i got same problem.
Kent Briggs
Site Admin
Posts: 6057
Joined: Wed Mar 19, 2008 8:47 pm

Re: I have a login problem for version 3.0 Gold

Post by Kent Briggs »

saintpatrick84 wrote:Yes, i get Password is Correct.
but again in SessionKey login i got same problem.
Have you modified the sample PHP code SessionKey3.php in any way? I just tested it again and it works for me. Are there any non-ASCII characters in your password? Create a temporary account with a simple password like xxxxxx and see if that works.
saintpatrick84
Posts: 5
Joined: Sat Jun 09, 2012 2:06 am

Re: I have a login problem for version 3.0 Gold

Post by saintpatrick84 »

I used exact sample to be sure about problem, and i have the same problem.
My used passwords are hello123 and hello for example.
In simple HTML mode it's working properly
Kent Briggs
Site Admin
Posts: 6057
Joined: Wed Mar 19, 2008 8:47 pm

Re: I have a login problem for version 3.0 Gold

Post by Kent Briggs »

saintpatrick84 wrote:I used exact sample to be sure about problem, and i have the same problem.
My used passwords are hello123 and hello for example.
In simple HTML mode it's working properly
Are you positive you are using the SessionKey3.php file and not the old SessionKey.php file? The newer one is calling "AccountsPassword" whereas the old one is calling "AccountsGet". Insert a line like:

echo "calling AccountsPassword";

right before the AccountsPassword line in your code to make sure that is the file being executed.
saintpatrick84
Posts: 5
Joined: Sat Jun 09, 2012 2:06 am

Re: I have a login problem for version 3.0 Gold

Post by saintpatrick84 »

my code:
if (isset($_POST["Login"]))
{
$player = $_POST["Player"];
$password = $_POST["Password"];
//print_r($password);die;
echo "calling AccountsPassword";
$params = "Password=$pw&Command=AccountsPassword" . "&Player=" . urlencode($player) . "&PW=" . urlencode($password);
//print_r($params);die;
$api = Poker_API($url,$params,true);
if ($api["Result"] != "Ok") die($api["Error"] . "<br/>" . "Click Back Button to retry.");
if ($api["Verified"] != "Yes") die("Password is incorrect. Click Back Button to retry.");
$params = "Password=$pw&Command=AccountsSessionKey&Player=" . urlencode($player);
$api = Poker_API($url,$params,true);
if ($api["Result"] != "Ok") die($api["Error"] . "<br/>" . "Click Back Button to retry.");
$key = $api["SessionKey"];
header("Location:" . $server . "/?LoginName=" . $player . "&SessionKey=" . $key);
exit;
}


Result:
calling AccountsPasswordPassword is incorrect
Click Back Button to retry.
Kent Briggs
Site Admin
Posts: 6057
Joined: Wed Mar 19, 2008 8:47 pm

Re: I have a login problem for version 3.0 Gold

Post by Kent Briggs »

saintpatrick84 wrote: if ($api["Result"] != "Ok") die($api["Error"] . "<br/>" . "Click Back Button to retry.");
if ($api["Verified"] != "Yes") die("Password is incorrect. Click Back Button to retry.");
Result:
calling AccountsPasswordPassword is incorrect
Click Back Button to retry.
I think I see the problem. I bet the "Result" line is what is returning the error meaning that your API password is incorrect, not the player password. Modify the "Verified" line so that the error says "Player password is incorrect" and then run it again. See if the word "Player" appears. Then look at your $pw variable and see if it really is your correct API password.
saintpatrick84
Posts: 5
Joined: Sat Jun 09, 2012 2:06 am

Re: I have a login problem for version 3.0 Gold

Post by saintpatrick84 »

Thank you.
That works after all.
Post Reply