Skip to content

Commit e742df0

Browse files
authored
feat: add account suspension error message for rate limiting (#41254)
## Description This PR adds a new error message constant `AUTH_ACCOUNT_SUSPENDED_FOR_RATE_LIMIT` to handle cases where user accounts are suspended due to rate limiting violations. ## Changes - Added `AUTH_ACCOUNT_SUSPENDED_FOR_RATE_LIMIT` message constant in `messages.ts` - Added the new error message to the approved error messages list in `approvedErrorMessages.ts` - The message informs users that their account is suspended for 24 hours and suggests resetting their password to continue ## Message Content > "Your account is suspended for 24 hours. Please reset your password to continue" This provides clear guidance to users on both the suspension duration and the action they can take to resolve it. ## Automation /ok-to-test tags="@tag.Sanity, @tag.Authentication" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/17939195425> > Commit: 5b1a651 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=17939195425&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.Sanity, @tag.Authentication` > Spec: > <hr>Tue, 23 Sep 2025 08:25:35 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a clear authentication message when an account is temporarily suspended due to rate limiting (24-hour lockout). This message is now displayed as a standard, user-visible error, helping users understand why sign-in is blocked and when they can retry. This improves feedback after too many attempts or excessive requests, reducing confusion and support inquiries. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent d5ee690 commit e742df0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

app/client/src/ce/constants/approvedErrorMessages.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
VERIFY_ERROR_MISMATCH_TITLE,
1010
FORM_VALIDATION_EMPTY_EMAIL,
1111
AUTH_LOGIN_TOO_MANY_ATTEMPTS,
12+
AUTH_ACCOUNT_SUSPENDED_FOR_RATE_LIMIT,
1213
AUTH_INVALID_CREDENTIALS,
1314
AUTH_UNAUTHORIZED,
1415
AUTH_NOT_LOGGED_IN,
@@ -39,6 +40,7 @@ export const APPROVED_ERROR_MESSAGES = {
3940
// Authentication & Authorization
4041
ERROR_401,
4142
AUTH_LOGIN_TOO_MANY_ATTEMPTS,
43+
AUTH_ACCOUNT_SUSPENDED_FOR_RATE_LIMIT,
4244
AUTH_INVALID_CREDENTIALS,
4345
AUTH_UNAUTHORIZED,
4446
AUTH_NOT_LOGGED_IN,

app/client/src/ce/constants/messages.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2679,6 +2679,8 @@ export const CUSTOM_ACTION_LABEL = () => "Custom Action";
26792679

26802680
export const AUTH_LOGIN_TOO_MANY_ATTEMPTS = () =>
26812681
"Too many login attempts. Please try again after some time.";
2682+
export const AUTH_ACCOUNT_SUSPENDED_FOR_RATE_LIMIT = () =>
2683+
"Your account is suspended for 24 hours. Please reset your password to continue";
26822684
export const AUTH_INVALID_CREDENTIALS = () =>
26832685
"Invalid credentials provided. Did you input the credentials correctly?";
26842686
export const AUTH_UNAUTHORIZED = () => "Unauthorized access";

0 commit comments

Comments
 (0)