|
|
|
@ -607,11 +607,11 @@ class Aauth {
|
|
|
|
|
$valid = FALSE; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if ($this->user_exsist_by_name($name)) { |
|
|
|
|
if ($this->user_exist_by_name($name)) { |
|
|
|
|
$this->error($this->CI->lang->line('aauth_error_username_exists')); |
|
|
|
|
$valid = FALSE; |
|
|
|
|
} |
|
|
|
|
if ($this->user_exsist_by_email($email)) { |
|
|
|
|
if ($this->user_exist_by_email($email)) { |
|
|
|
|
$this->error($this->CI->lang->line('aauth_error_email_exists')); |
|
|
|
|
$valid = FALSE; |
|
|
|
|
} |
|
|
|
@ -685,7 +685,7 @@ class Aauth {
|
|
|
|
|
$valid = TRUE; |
|
|
|
|
|
|
|
|
|
if ($email != FALSE) { |
|
|
|
|
if ($this->user_exsist_by_email($email)) { |
|
|
|
|
if ($this->user_exist_by_email($email)) { |
|
|
|
|
$this->error($this->CI->lang->line('aauth_error_update_email_exists')); |
|
|
|
|
$valid = FALSE; |
|
|
|
|
} |
|
|
|
@ -705,7 +705,7 @@ class Aauth {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($name != FALSE) { |
|
|
|
|
if ($this->user_exsist_by_name($name)) { |
|
|
|
|
if ($this->user_exist_by_name($name)) { |
|
|
|
|
$this->error($this->CI->lang->line('aauth_error_update_username_exists')); |
|
|
|
|
$valid = FALSE; |
|
|
|
|
} |
|
|
|
@ -934,13 +934,13 @@ class Aauth {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* user_exsist_by_name |
|
|
|
|
* user_exist_by_name |
|
|
|
|
* Check if user exist by name |
|
|
|
|
* @param $user_id |
|
|
|
|
* |
|
|
|
|
* @return bool |
|
|
|
|
*/ |
|
|
|
|
public function user_exsist_by_name( $name ) { |
|
|
|
|
public function user_exist_by_name( $name ) { |
|
|
|
|
$query = $this->aauth_db->where('name', $name); |
|
|
|
|
|
|
|
|
|
$query = $this->aauth_db->get($this->config_vars['users']); |
|
|
|
@ -952,13 +952,13 @@ class Aauth {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* user_exsist_by_email |
|
|
|
|
* Check if user exsist by user email |
|
|
|
|
* user_exist_by_email |
|
|
|
|
* Check if user exist by user email |
|
|
|
|
* @param $user_email |
|
|
|
|
* |
|
|
|
|
* @return bool |
|
|
|
|
*/ |
|
|
|
|
public function user_exsist_by_email( $user_email ) { |
|
|
|
|
public function user_exist_by_email( $user_email ) { |
|
|
|
|
$query = $this->aauth_db->where('email', $user_email); |
|
|
|
|
|
|
|
|
|
$query = $this->aauth_db->get($this->config_vars['users']); |
|
|
|
|