Failed login message translation fallback

Without this, if you use a locale with no translation for this (e.g. en_NZ), users will never see a "failed login" message.
This commit is contained in:
Stephen Shkardoon 2013-09-16 15:33:42 +12:00
parent d98c1db3a2
commit 4f52f25d46

View File

@ -46,7 +46,11 @@ class MemberAuthenticator extends Authenticator {
if($member) { if($member) {
$result = $member->checkPassword($RAW_data['Password']); $result = $member->checkPassword($RAW_data['Password']);
} else { } else {
$result = new ValidationResult(false, _t('Member.ERRORWRONGCRED')); $result = new ValidationResult(
false,
_t('Member.ERRORWRONGCRED',
'That doesn\'t seem to be the right e-mail address or password. Please try again.'
));
} }
if($member && !$result->valid()) { if($member && !$result->valid()) {
@ -141,4 +145,4 @@ class MemberAuthenticator extends Authenticator {
} }
} }
?> ?>