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. 9
      application/libraries/Aauth.php

9
application/libraries/Aauth.php

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

Loading…
Cancel
Save