Added API getUserByName()

Tests and doc included
This commit is contained in:
jf-guillou
2016-01-25 10:05:44 +01:00
parent 051bf1c9db
commit 63a2861476
3 changed files with 61 additions and 0 deletions

View File

@@ -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();