My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 3: Small typo in the code
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Aug 2010


 
Reported by gabriel....@gmail.com, Aug 11, 2010
What steps will reproduce the problem?
1.  addclient.php doesn't work with the pdo implementation.

What is the expected output? What do you see instead?
- Adding client in the db.
- No client is added in the db and no error.

What version of the product are you using? On what operating system?
draft 9

Please provide any additional information below.

In 
            $stmt = $this->db->prepare($sql);
            $stmt->bindParam(":client_id", $client_id, PDO::PARAM_STR);
            $stmt->bindParam(":pw", $pw, PDO::PARAM_STR);
            $stmt->bindParam(":redirect_uri", $redirect_uri, PDO::PARAM_STR);
            $stmt->execute();

it's not
            $stmt->bindParam(":pw", $pw, PDO::PARAM_STR);
but (probably)
            $stmt->bindParam(":pw", $secret, PDO::PARAM_STR);
That is the parameter given in the function call
    public function add_client($client_id, $secret, $redirect_uri) {






Aug 13, 2010
Project Member #1 aaron.parecki
This has been corrected in rev 1c58440e66
Status: Fixed

Powered by Google Project Hosting