mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Updated error message grammar for rate limiting (#17243)
fixes https://github.com/TryGhost/Ghost/issues/17233 - this reads better to the end-user
This commit is contained in:
parent
cdae2a978d
commit
45bd4ec39a
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ const membersAuthEnumeration = () => {
|
||||||
attachResetToRequest: true,
|
attachResetToRequest: true,
|
||||||
failCallback(req, res, next, nextValidRequestDate) {
|
failCallback(req, res, next, nextValidRequestDate) {
|
||||||
return next(new errors.TooManyRequestsError({
|
return next(new errors.TooManyRequestsError({
|
||||||
message: `Too many different sign-in attempts try again in ${moment(nextValidRequestDate).fromNow(true)}`,
|
message: `Too many different sign-in attempts, try again in ${moment(nextValidRequestDate).fromNow(true)}`,
|
||||||
context: tpl(messages.tooManySigninAttempts.context),
|
context: tpl(messages.tooManySigninAttempts.context),
|
||||||
help: tpl(messages.tooManySigninAttempts.context)
|
help: tpl(messages.tooManySigninAttempts.context)
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Add table
Reference in a new issue