CodeIgniter-Aauth icon indicating copy to clipboard operation
CodeIgniter-Aauth copied to clipboard

login error msg is not accurate

Open jmikerq opened this issue 6 years ago • 1 comments

In the case where I use only email to login, and if the password doesn't match, the error msg return is:

aauth_error_login_failed_all: E-mail, Username or Password do not match.

you can find this at line 298 in the stable version

$this->error($this->CI->lang->line('aauth_error_login_failed_all'));

I think the login function should check whether user is using email only, user only, or allowing both, and then return the correct error msg.

In my case, it should return

$lang['aauth_error_login_failed_email'] = 'E-mail Address and Password do not match.';

jmikerq avatar Mar 16 '18 18:03 jmikerq

I agree with this but i gone change this in v3.0.0

REJack avatar Mar 18 '18 16:03 REJack