diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-03-17 12:18:22 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-03-17 12:18:22 +0100 |
commit | ccd57ce1b1e851b90f3481538352a9b29a9fcc2a (patch) | |
tree | 296e388b94d2d80197c2252a99bf5844df7c1428 /apps/provisioning_api/lib | |
parent | 3cac7911d592260fd48a489ee07bf4cb3b500dd9 (diff) | |
download | nextcloud-server-ccd57ce1b1e851b90f3481538352a9b29a9fcc2a.tar.gz nextcloud-server-ccd57ce1b1e851b90f3481538352a9b29a9fcc2a.zip |
Allow empty emails provisionning api
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/provisioning_api/lib')
-rw-r--r-- | apps/provisioning_api/lib/Controller/UsersController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php index 087e65a1bca..2c89efc8233 100644 --- a/apps/provisioning_api/lib/Controller/UsersController.php +++ b/apps/provisioning_api/lib/Controller/UsersController.php @@ -451,7 +451,7 @@ class UsersController extends OCSController { $this->config->setUserValue($targetUser->getUID(), 'core', 'lang', $value); break; case AccountManager::PROPERTY_EMAIL: - if(filter_var($value, FILTER_VALIDATE_EMAIL)) { + if(filter_var($value, FILTER_VALIDATE_EMAIL) || $value === '') { $targetUser->setEMailAddress($value); } else { throw new OCSException('', 102); |