Skip to content

Commit

Permalink
"aauth_error_login_failed" is not specified
Browse files Browse the repository at this point in the history
aauth_error_login_failed - this language key is not specified
  • Loading branch information
vipinks committed Oct 17, 2015
1 parent cfc0295 commit 3db113a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,12 @@ public function login($identifier, $pass, $remember = FALSE, $totp_code = NULL)
$query = $this->aauth_db->get($this->config_vars['users']);

if($query->num_rows() == 0){
$this->error($this->CI->lang->line('aauth_error_login_failed'));
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'));
return FALSE;
}

Expand Down

0 comments on commit 3db113a

Please sign in to comment.