diff options
author | jf-guillou <jean-francois.guillou@univ-rennes1.fr> | 2016-01-25 10:05:44 +0100 |
---|---|---|
committer | jf-guillou <jean-francois.guillou@univ-rennes1.fr> | 2016-01-25 10:05:44 +0100 |
commit | 63a286147685073102270f4974d85b32818641c5 (patch) | |
tree | 66ac6c066f3d49a831ffd9d52bf85d584af81f60 /app | |
parent | 051bf1c9dbb5733242c7657d6d507389206b33ee (diff) |
Added API getUserByName()
Tests and doc included
Diffstat (limited to 'app')
-rw-r--r-- | app/Api/User.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Api/User.php b/app/Api/User.php index 63c222fe..9f26615d 100644 --- a/app/Api/User.php +++ b/app/Api/User.php @@ -21,6 +21,11 @@ class User extends \Kanboard\Core\Base return $this->user->getById($user_id); } + public function getUserByName($username) + { + return $this->user->getByUsername($username); + } + public function getAllUsers() { return $this->user->getAll(); |