don't try to verify email address if no email address is set
This commit is contained in:
parent
5aed91c321
commit
4a05aa8a02
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue