mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 18:52:14 +03: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
@ -202,7 +202,7 @@ const membersAuthEnumeration = () => {
|
||||
attachResetToRequest: true,
|
||||
failCallback(req, res, next, nextValidRequestDate) {
|
||||
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),
|
||||
help: tpl(messages.tooManySigninAttempts.context)
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user