Skip to content

Commit

Permalink
Fix depreciated valid email
Browse files Browse the repository at this point in the history
Fix depreciated valid email
  • Loading branch information
lostlian authored and lostlian committed Oct 10, 2015
1 parent dce098f commit da36535
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,8 @@ public function create_user($email, $pass, $name='') {
$this->error($this->CI->lang->line('aauth_error_email_exists'));
$valid = FALSE;
}
if (!valid_email($email)){
$valid_email = (bool) filter_var($email, FILTER_VALIDATE_EMAIL);
if (!$valid_email){
$this->error($this->CI->lang->line('aauth_error_email_invalid'));
$valid = FALSE;
}
Expand Down

0 comments on commit da36535

Please sign in to comment.