diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2016-11-21 09:43:52 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-11-21 11:30:03 +0100 |
commit | 4a05aa8a02a2bf4403621530958ccc676689986d (patch) | |
tree | 89772bdb4ede09f5791e0051f7a17d58116e3b4f /settings/Controller | |
parent | 5aed91c3212bc0dbb2e19f6ec8cab4d91cbb34c0 (diff) | |
download | nextcloud-server-4a05aa8a02a2bf4403621530958ccc676689986d.tar.gz nextcloud-server-4a05aa8a02a2bf4403621530958ccc676689986d.zip |
don't try to verify email address if no email address is set
Diffstat (limited to 'settings/Controller')
-rw-r--r-- | settings/Controller/UsersController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/Controller/UsersController.php b/settings/Controller/UsersController.php index 58cc59f9848..206f1872542 100644 --- a/settings/Controller/UsersController.php +++ b/settings/Controller/UsersController.php @@ -537,7 +537,7 @@ class UsersController extends Controller { ) { - if(!$this->mailer->validateMailAddress($email)) { + if(!empty($email) && !$this->mailer->validateMailAddress($email)) { return new DataResponse( array( 'status' => 'error', |