Browse Source

moved user_exsist_by_email out of else to prevent double emails in database

develop
Raphael Jackstadt 10 years ago
parent
commit
206342b49e
  1. 3
      application/libraries/Aauth.php

3
application/libraries/Aauth.php

@ -606,12 +606,11 @@ class Aauth {
$this->error($this->CI->lang->line('aauth_error_username_exists'));
$valid = FALSE;
}
}else{
}
if ($this->user_exsist_by_email($email)) {
$this->error($this->CI->lang->line('aauth_error_email_exists'));
$valid = FALSE;
}
}
if (!valid_email($email)){
$this->error($this->CI->lang->line('aauth_error_email_invalid'));
$valid = FALSE;

Loading…
Cancel
Save