From 4f52f25d46fccaaf2ecd8d3a501fbc90f9a1ceab Mon Sep 17 00:00:00 2001 From: Stephen Shkardoon Date: Mon, 16 Sep 2013 15:33:42 +1200 Subject: [PATCH] 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. --- security/MemberAuthenticator.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/security/MemberAuthenticator.php b/security/MemberAuthenticator.php index e74cb1599..76d5046c5 100755 --- a/security/MemberAuthenticator.php +++ b/security/MemberAuthenticator.php @@ -46,7 +46,11 @@ class MemberAuthenticator extends Authenticator { if($member) { $result = $member->checkPassword($RAW_data['Password']); } 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()) { @@ -141,4 +145,4 @@ class MemberAuthenticator extends Authenticator { } } -?> \ No newline at end of file +?>