Page 1 of 1

I have a login problem for version 3.0 Gold

Posted: Sat Jun 09, 2012 2:31 am
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?

Re: I have a login problem for version 3.0 Gold

Posted: Sat Jun 09, 2012 10:06 am
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"?

Re: I have a login problem for version 3.0 Gold

Posted: Sat Jun 09, 2012 9:51 pm
by saintpatrick84
Yes, i get Password is Correct.
but again in SessionKey login i got same problem.

Re: I have a login problem for version 3.0 Gold

Posted: Sun Jun 10, 2012 12:00 am
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.

Re: I have a login problem for version 3.0 Gold

Posted: Sun Jun 10, 2012 12:14 am
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

Re: I have a login problem for version 3.0 Gold

Posted: Sun Jun 10, 2012 12:23 am
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.

Re: I have a login problem for version 3.0 Gold

Posted: Sun Jun 10, 2012 12:29 am
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.

Re: I have a login problem for version 3.0 Gold

Posted: Sun Jun 10, 2012 9:31 am
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.

Re: I have a login problem for version 3.0 Gold

Posted: Mon Jun 11, 2012 2:33 am
by saintpatrick84
Thank you.
That works after all.