From f92f3a1a6ecbce06fbe24204ef12b2eeeb0f0d15 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Thu, 19 Feb 2015 18:55:27 +0100 Subject: Incorporate review changes --- settings/controller/userscontroller.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'settings/controller/userscontroller.php') diff --git a/settings/controller/userscontroller.php b/settings/controller/userscontroller.php index 507e57ef940..11afe514016 100644 --- a/settings/controller/userscontroller.php +++ b/settings/controller/userscontroller.php @@ -263,8 +263,7 @@ class UsersController extends Controller { * @return DataResponse */ public function create($username, $password, array $groups=array(), $email='') { - - if($email !== '' && !\OCP\Mail\Util::validateMailAddress($email)) { + if($email !== '' && !$this->mailer->validateMailAddress($email)) { return new DataResponse( array( 'message' => (string)$this->l10n->t('Invalid mail address') @@ -443,7 +442,7 @@ class UsersController extends Controller { ); } - if($mailAddress !== '' && ! \OCP\Mail\Util::validateMailAddress($mailAddress)) { + if($mailAddress !== '' && !$this->mailer->validateMailAddress($mailAddress)) { return new DataResponse( array( 'status' => 'error', -- cgit v1.2.3