summaryrefslogtreecommitdiffstats
path: root/application/controllers/user.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-07-14 15:17:08 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-07-14 15:17:08 +0200
commit3917a0cb9e284cc423b110901e165de6a0cfa5da (patch)
tree8b6ea6b421eeac7b9922a6be3d359ae04244f771 /application/controllers/user.php
parent1b462fac46eaf387f47a274a9f6bd9b46cd19981 (diff)
controller/user: Use our function for email verifcation
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/user.php')
-rw-r--r--application/controllers/user.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/application/controllers/user.php b/application/controllers/user.php
index 37cf97fe1..21d5d21f5 100644
--- a/application/controllers/user.php
+++ b/application/controllers/user.php
@@ -468,8 +468,7 @@ class User extends MY_Controller {
return null;
}
- $this->load->helper("email");
- if (!valid_email($value)) {
+ if (!$this->muser->valid_email($value)) {
throw new \exceptions\PublicApiException("user/profile/invalid-email", "Invalid email");
}