summaryrefslogtreecommitdiff
path: root/app/Model/User.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model/User.php')
-rw-r--r--app/Model/User.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/Model/User.php b/app/Model/User.php
index 8769d69a..ba1acb90 100644
--- a/app/Model/User.php
+++ b/app/Model/User.php
@@ -52,6 +52,18 @@ class User extends Base
}
/**
+ * 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
*
* @access public