diff options
author | dartcafe <github@dartcafe.de> | 2020-09-13 13:45:46 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-09-13 13:45:46 +0300 |
commit | d0ed62807b380868e97c31265e60d887788fa08a (patch) | |
tree | 1891dc5829205d50043b0f9905966f8da2996d1f /lib/Controller/PreferencesController.php | |
parent | c0ebb54966d3b334145d5075e1da8757b90018b8 (diff) |
Validate email address and improve register dialog
Diffstat (limited to 'lib/Controller/PreferencesController.php')
-rw-r--r-- | lib/Controller/PreferencesController.php | 39 |
1 files changed, 2 insertions, 37 deletions
diff --git a/lib/Controller/PreferencesController.php b/lib/Controller/PreferencesController.php index f0ee44ab..26d6832f 100644 --- a/lib/Controller/PreferencesController.php +++ b/lib/Controller/PreferencesController.php @@ -25,13 +25,10 @@ namespace OCA\Polls\Controller; use OCP\AppFramework\Db\DoesNotExistException; - use OCP\IRequest; use OCP\AppFramework\Controller; use OCP\AppFramework\Http; use OCP\AppFramework\Http\DataResponse; - - use OCA\Polls\Db\Preferences; use OCA\Polls\Db\PreferencesMapper; @@ -39,11 +36,6 @@ class PreferencesController extends Controller { private $userId; private $preferencesMapper; - private $groupManager; - private $pollMapper; - private $anonymizer; - private $acl; - /** * PreferencesController constructor. * @param string $appName @@ -62,13 +54,11 @@ class PreferencesController extends Controller { $this->preferencesMapper = $preferencesMapper; } - /** * get * Read all preferences * @NoAdminRequired * @NoCSRFRequired - * @param integer $pollId * @return DataResponse */ public function get() { @@ -81,12 +71,9 @@ class PreferencesController extends Controller { /** * write - * Write a new comment to the db and returns the new comment as array + * Write wreferences * @NoAdminRequired - * @NoCSRFRequired - * @param int $pollId - * @param string $userId - * @param string $message + * @param int $settings * @return DataResponse */ public function write($settings) { @@ -110,26 +97,4 @@ class PreferencesController extends Controller { return new DataResponse($preferences, Http::STATUS_OK); } - // /** - // * delete - // * Delete Preferences - // * @NoAdminRequired - // * @param int $pollId - // * @param string $message - // * @return DataResponse - // */ - // public function delete($userId) { - // if (!\OC::$server->getUserSession()->isLoggedIn()) { - // return new DataResponse(null, Http::STATUS_UNAUTHORIZED); - // } - // - // try { - // $this->preferencesMapper->delete($userId); - // } catch (\Exception $e) { - // return new DataResponse($e, Http::STATUS_CONFLICT); - // } - // - // return new DataResponse(['deleted' => $userId], Http::STATUS_OK); - // - // } } |