From 63a286147685073102270f4974d85b32818641c5 Mon Sep 17 00:00:00 2001 From: jf-guillou Date: Mon, 25 Jan 2016 10:05:44 +0100 Subject: Added API getUserByName() Tests and doc included --- app/Api/User.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app') 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(); -- cgit v1.2.3