mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2421 from ss23/patch-1
Failed login message translation fallback
This commit is contained in:
commit
ac284eeff1
@ -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 {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user