Skip to content

Commit

Permalink
don't try to verify email address if no email address is set
Browse files Browse the repository at this point in the history
  • Loading branch information
schiessle committed Nov 21, 2016
1 parent 4a5d05e commit 5168b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion settings/Controller/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ public function setUserSettings($avatarScope,
) {


if(!$this->mailer->validateMailAddress($email)) {
if(!empty($email) && !$this->mailer->validateMailAddress($email)) {
return new DataResponse(
array(
'status' => 'error',
Expand Down

0 comments on commit 5168b15

Please sign in to comment.