GitHub PullRequestReviewCommentEvent at 2014-02-22 22:28:24
Repository: bence
Actor: axasanya
Payload: {"comment":{"url":"https://api.github.com/repos/axasanya/bence/pulls/comments/9973352","id":9973352,"diff_hunk":"@@ -0,0 +1,103 @@\n+<?php\n+ /**\n+ * Created by PhpStorm.\n+  * User: akszenovicssandor\n+  * Date: 2014.02.18.\n+  * Time: 22:29\n+  */\n+ \n+ \n+ class User extends MyPDO {\n+ \n+     /**\n+      * @var integer\n+      */\n+     private $id;\n+ \n+     /**\n+      * @var string\n+      */\n+     private $username;\n+\n+     /**\n+      * @var string\n+      */\n+    private $password;\n+ \n+     \n+ \n+ \n+ \n+     /**\n+      * get user(s) by username and password\n+      *\n+      * @return array\n+      */\n+     public static function getUser($username,$pass){\n+         $pdo = new MyPDO();echo SHA1($pass);\n+         $stmt = $pdo->prepare(\"SELECT id, username FROM Users WHERE username='$username' AND pass = SHA1('$pass')\");","path":"modell/User.php","position":38,"original_position":38,"commit_id":"234e753b419f1a73418158e75769d063bc74922f","original_commit_id":"234e753b419f1a73418158e75769d063bc74922f","user":{"login":"axasanya","id":2088296,"avatar_url":"https://gravatar.com/avatar/5cae6f081bd3e0a3859d05fecd80330e?d=https%3A%2F%2Fidenticons.github.com%2Ff907216a2440e7dca50515d98043dc94.png&r=x","gravatar_id":"5cae6f081bd3e0a3859d05fecd80330e","url":"https://api.github.com/users/axasanya","html_url":"https://github.com/axasanya","followers_url":"https://api.github.com/users/axasanya/followers","following_url":"https://api.github.com/users/axasanya/following{/other_user}","gists_url":"https://api.github.com/users/axasanya/gists{/gist_id}","starred_url":"https://api.github.com/users/axasanya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axasanya/subscriptions","organizations_url":"https://api.github.com/users/axasanya/orgs","repos_url":"https://api.github.com/users/axasanya/repos","events_url":"https://api.github.com/users/axasanya/events{/privacy}","received_events_url":"https://api.github.com/users/axasanya/received_events","type":"User","site_admin":false},"body":"A PDO-s dokumentációt nem olvastad el... lásd a queryket a `Product` osztályban","created_at":"2014-02-22T22:28:24Z","updated_at":"2014-02-22T22:28:24Z","html_url":"https://github.com/axasanya/bence/pull/1#discussion_r9973352","pull_request_url":"https://api.github.com/repos/axasanya/bence/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/axasanya/bence/pulls/comments/9973352"},"html":{"href":"https://github.com/axasanya/bence/pull/1#discussion_r9973352"},"pull_request":{"href":"https://api.github.com/repos/axasanya/bence/pulls/1"}}}}