diff --git a/application/libraries/Aauth.php b/application/libraries/Aauth.php index c762e07..c7006ce 100644 --- a/application/libraries/Aauth.php +++ b/application/libraries/Aauth.php @@ -602,10 +602,10 @@ class Aauth { $this->error($this->CI->lang->line('aauth_error_username_required')); $valid = FALSE; } - if ($this->user_exsist_by_name($name)) { - $this->error($this->CI->lang->line('aauth_error_username_exists')); - $valid = FALSE; - } + } + if ($this->user_exsist_by_name($name)) { + $this->error($this->CI->lang->line('aauth_error_username_exists')); + $valid = FALSE; } if ($this->user_exsist_by_email($email)) { $this->error($this->CI->lang->line('aauth_error_email_exists'));