diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-02-13 15:38:35 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-02-13 15:38:35 -0500 |
commit | 6161eaef9e107ddbfc104753eb5d48434de3b824 (patch) | |
tree | 6a689458e0705c8da272712b71358ccd992f8a8b /app/Api | |
parent | 567d623446d7e98393fb542c88d6d3b18b05cf6f (diff) |
Enable/Disable users
Diffstat (limited to 'app/Api')
-rw-r--r-- | app/Api/User.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/Api/User.php b/app/Api/User.php index 9f26615d..48337ac6 100644 --- a/app/Api/User.php +++ b/app/Api/User.php @@ -36,6 +36,21 @@ class User extends \Kanboard\Core\Base return $this->user->remove($user_id); } + public function disableUser($user_id) + { + return $this->user->disable($user_id); + } + + public function enableUser($user_id) + { + return $this->user->enable($user_id); + } + + public function isActiveUser($user_id) + { + return $this->user->isActive($user_id); + } + public function createUser($username, $password, $name = '', $email = '', $role = Role::APP_USER) { $values = array( |