diff options
author | dartcafe <github@dartcafe.de> | 2021-02-26 01:44:50 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-02-26 01:44:50 +0300 |
commit | 2602297ebd25bbdaca595d99daaa98b980596577 (patch) | |
tree | 7156c18c0ba1cd4f715cc3bb2f9b1da0659202e0 /lib/Controller/ShareController.php | |
parent | 58f7d604d4ba86767f82134c54caf8d607280251 (diff) |
Let public users change their email address
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'lib/Controller/ShareController.php')
-rw-r--r-- | lib/Controller/ShareController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/ShareController.php b/lib/Controller/ShareController.php index 8d565f39..14fa3c3f 100644 --- a/lib/Controller/ShareController.php +++ b/lib/Controller/ShareController.php @@ -99,7 +99,7 @@ class ShareController extends Controller { * Add share * @NoAdminRequired */ - public function add($pollId, $type, $userId = ''): DataResponse { + public function add(int $pollId, string $type, $userId = ''): DataResponse { return $this->responseCreate(function () use ($pollId, $type, $userId) { return ['share' => $this->shareService->add($pollId, $type, $userId)]; }); @@ -109,7 +109,7 @@ class ShareController extends Controller { * Set email address * @NoAdminRequired */ - public function setEmailAddress($token, $emailAddress): DataResponse { + public function setEmailAddress(string $token, ?string $emailAddress = ''): DataResponse { return $this->response(function () use ($token, $emailAddress) { return ['share' => $this->shareService->setEmailAddress($token, $emailAddress)]; }); |