Merge pull-request: Github authentication #162
This commit is contained in:
@@ -51,6 +51,18 @@ class User extends Base
|
||||
return $this->db->table(self::TABLE)->eq('google_id', $google_id)->findOne();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a specific user by the GitHub id
|
||||
*
|
||||
* @access public
|
||||
* @param string $github_id GitHub user id
|
||||
* @return array
|
||||
*/
|
||||
public function getByGitHubId($github_id)
|
||||
{
|
||||
return $this->db->table(self::TABLE)->eq('github_id', $github_id)->findOne();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a specific user by the username
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user