From 881bae11ab6cd1be94cbb13e831932e59d8c1eba Mon Sep 17 00:00:00 2001 From: Raphael Jackstadt Date: Tue, 12 May 2015 16:44:29 +0200 Subject: [PATCH] removed requirement for unique name/username --- application/libraries/Aauth.php | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/application/libraries/Aauth.php b/application/libraries/Aauth.php index 3a22e5c..3fbe027 100644 --- a/application/libraries/Aauth.php +++ b/application/libraries/Aauth.php @@ -581,17 +581,11 @@ class Aauth { $valid = TRUE; - // if email is already exist if ($this->user_exsist_by_email($email)) { $this->error($this->CI->lang->line('aauth_error_email_exists')); $valid = FALSE; } - if ($this->user_exsist_by_name($name)) { - $this->error($this->CI->lang->line('aauth_error_username_exists')); - $valid = FALSE; - } - - if ( ! valid_email($email)){ + if (!valid_email($email)){ $this->error($this->CI->lang->line('aauth_error_email_invalid')); $valid = FALSE; } @@ -603,13 +597,9 @@ class Aauth { $this->error($this->CI->lang->line('aauth_error_username_invalid')); $valid = FALSE; } - if (empty($name)){ - $this->error($this->CI->lang->line('aauth_error_username_required')); - $valid = FALSE; - } - if (!$valid) { - return FALSE; } + return FALSE; + } $data = array( 'email' => $email,