Skip to content

Commit

Permalink
Another approach for aauth_error_login_failed
Browse files Browse the repository at this point in the history
keeping the old logic, but using proper lang key "aauth_error_no_user"
  • Loading branch information
vipinks committed Oct 17, 2015
1 parent 3db113a commit 9ead755
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,7 @@ public function login($identifier, $pass, $remember = FALSE, $totp_code = NULL)
$query = $this->aauth_db->get($this->config_vars['users']);

if($query->num_rows() == 0){
if( $this->config_vars['login_with_name'] == TRUE){
$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'));
$this->error($this->CI->lang->line('aauth_error_no_user'));
return FALSE;
}

Expand Down

0 comments on commit 9ead755

Please sign in to comment.