summaryrefslogtreecommitdiff
path: root/app/Model/User.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-06-30 21:52:02 -0300
committerFrédéric Guillot <fred@kanboard.net>2014-06-30 21:52:02 -0300
commit06d0b7048ebcdfdf6e24eec3ac7dc8fb0327dd6f (patch)
treeeb006b4c560781186f1debd2437c02edf6008878 /app/Model/User.php
parentf70ac7d65fa0e7f1e6a9559242d9c141ba5c9eb3 (diff)
Merge pull-request: Github authentication #162
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