From 45bd4ec39a29295587efa213e6eae267ddbf2e21 Mon Sep 17 00:00:00 2001 From: Vigneshwaran Date: Tue, 11 Jul 2023 12:11:05 +0530 Subject: [PATCH] Updated error message grammar for rate limiting (#17243) fixes https://github.com/TryGhost/Ghost/issues/17233 - this reads better to the end-user --- .../core/server/web/shared/middleware/api/spam-prevention.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/core/core/server/web/shared/middleware/api/spam-prevention.js b/ghost/core/core/server/web/shared/middleware/api/spam-prevention.js index 2ab5610bfd..d47490538b 100644 --- a/ghost/core/core/server/web/shared/middleware/api/spam-prevention.js +++ b/ghost/core/core/server/web/shared/middleware/api/spam-prevention.js @@ -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) }));