mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
d98c1db3a2
commit
4f52f25d46
@ -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 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user