don't try to verify email address if no email address is set

This commit is contained in:
Bjoern Schiessle 2016-11-21 09:43:52 +01:00 committed by Roeland Jago Douma
parent 5aed91c321
commit 4a05aa8a02
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -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',