diff options
author | GretaD <gretadoci@gmail.com> | 2021-02-11 20:32:08 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-02-26 19:59:39 +0300 |
commit | 5677ea6d1a234060466c34b181bf86f9fd8b8200 (patch) | |
tree | 3edc34eaecfb04ff4917076c34d4ed8a8f57f779 /lib/Controller/TrustedSendersController.php | |
parent | 06842c1ad4fc1b73218d7a49b72343ce6ac92b48 (diff) |
Add trusted domain
Signed-off-by: GretaD <gretadoci@gmail.com>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Controller/TrustedSendersController.php')
-rw-r--r-- | lib/Controller/TrustedSendersController.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/Controller/TrustedSendersController.php b/lib/Controller/TrustedSendersController.php index 552101d8d..54c5d930c 100644 --- a/lib/Controller/TrustedSendersController.php +++ b/lib/Controller/TrustedSendersController.php @@ -54,13 +54,14 @@ class TrustedSendersController extends Controller { * @TrapError * * @param string $email - * + * @param string $type * @return JsonResponse */ - public function setTrusted(string $email): JsonResponse { + public function setTrusted(string $email, string $type): JsonResponse { $this->trustedSenderService->trust( $this->uid, - $email + $email, + $type ); return JsonResponse::success(null, Http::STATUS_CREATED); @@ -71,13 +72,14 @@ class TrustedSendersController extends Controller { * @TrapError * * @param string $email - * + * @param string $type * @return JsonResponse */ - public function removeTrust(string $email): JsonResponse { + public function removeTrust(string $email, string $type): JsonResponse { $this->trustedSenderService->trust( $this->uid, $email, + $type, false ); |