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:
Vigneshwaran 2023-07-11 12:11:05 +05:30 committed by GitHub
parent cdae2a978d
commit 45bd4ec39a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}));