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?
I have a login problem for version 3.0 Gold
-
saintpatrick84
- Posts: 5
- Joined: Sat Jun 09, 2012 2:06 am
-
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
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 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?
-
saintpatrick84
- Posts: 5
- Joined: Sat Jun 09, 2012 2:06 am
Re: I have a login problem for version 3.0 Gold
Yes, i get Password is Correct.
but again in SessionKey login i got same problem.
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
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 wrote:Yes, i get Password is Correct.
but again in SessionKey login i got same problem.
-
saintpatrick84
- Posts: 5
- Joined: Sat Jun 09, 2012 2:06 am
Re: I have a login problem for version 3.0 Gold
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
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
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: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
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
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.
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
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 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.
-
saintpatrick84
- Posts: 5
- Joined: Sat Jun 09, 2012 2:06 am
Re: I have a login problem for version 3.0 Gold
Thank you.
That works after all.
That works after all.