Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Controller/SystemController.php')
-rw-r--r--lib/Controller/SystemController.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Controller/SystemController.php b/lib/Controller/SystemController.php
index 1d2c6dfb..ea3a0be1 100644
--- a/lib/Controller/SystemController.php
+++ b/lib/Controller/SystemController.php
@@ -131,4 +131,14 @@ class SystemController extends Controller {
public function validatePublicUsername($pollId, $userName, $token) {
return new DataResponse(['result' => $this->systemService->validatePublicUsername($pollId, $userName, $token), 'name' => $userName], Http::STATUS_OK);
}
+
+ /**
+ * Validate email address (simple validation)
+ * @NoAdminRequired
+ * @PublicPage
+ * @return DataResponse
+ */
+ public function validateEmailAddress($emailAddress) {
+ return new DataResponse(['result' => $this->systemService->validateEmailAddress($emailAddress), 'emailAddress' => $emailAddress], Http::STATUS_OK);
+ }
}