diff --git a/backend/lib/controller/channelcontroller.php b/backend/lib/controller/channelcontroller.php index 988992b..89114f0 100644 --- a/backend/lib/controller/channelcontroller.php +++ b/backend/lib/controller/channelcontroller.php @@ -31,7 +31,8 @@ class ChannelController extends Controller { public function add() { $channel = new Channel(); - $channel->ucid = $ucid; + + // TODO add ucid generation or exception if no one has been passed via get if (substr($channel->ucid, 0, 19) == OneWireSensor::$ucidPrefix) { $channel->type = 'OneWireSensor'; diff --git a/backend/lib/controller/groupcontroller.php b/backend/lib/controller/groupcontroller.php index 6f426fc..37ea9fd 100644 --- a/backend/lib/controller/groupcontroller.php +++ b/backend/lib/controller/groupcontroller.php @@ -25,7 +25,7 @@ class GroupController extends Controller { $group->description = $this->view->request->get['description']; $group->save(); - // TODO add ugid + // TODO generate ugid $this->view->addGroup($group); } diff --git a/backend/lib/controller/usercontroller.php b/backend/lib/controller/usercontroller.php index 1f37851..b87f215 100644 --- a/backend/lib/controller/usercontroller.php +++ b/backend/lib/controller/usercontroller.php @@ -23,6 +23,9 @@ class UserController extends Controller { public function add() { $user = new User(); $user->password = $this->view->request->get['password']; + + // TODO generate uuid + $user->save(); $this->view->addUser($user); }