Browse Source

Another approach for aauth_error_login_failed

keeping the old logic, but using proper lang key "aauth_error_no_user"
develop
Vipin K. Singh 10 years ago
parent
commit
9ead7557c9
  1. 7
      application/libraries/Aauth.php

7
application/libraries/Aauth.php

@ -216,12 +216,7 @@ class Aauth {
$query = $this->aauth_db->get($this->config_vars['users']); $query = $this->aauth_db->get($this->config_vars['users']);
if($query->num_rows() == 0){ if($query->num_rows() == 0){
if( $this->config_vars['login_with_name'] == TRUE){ $this->error($this->CI->lang->line('aauth_error_no_user'));
$this->error($this->CI->lang->line('aauth_error_username_invalid'));
} else {
$this->error($this->CI->lang->line('aauth_error_email_invalid'));
}
//$this->error($this->CI->lang->line('aauth_error_login_failed'));
return FALSE; return FALSE;
} }

Loading…
Cancel
Save