Skip to content

Fix five-attempt admin login lockout and preserve invalid-password feedback - #90

Merged
SamRepository25 merged 1 commit into
mainfrom
fix/invalid-login-message-when-lockout-rpc-fails
Sep 27, 2026
Merged

SamRepository25 merged 1 commit into
mainfrom
fix/invalid-login-message-when-lockout-rpc-fails

Conversation

@SamRepository25

@SamRepository25 SamRepository25 commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Return Invalid username or password. for incorrect credentials even if failed-attempt telemetry cannot be persisted.
  • Trigger a server-side 30-minute lockout on the 5th invalid password attempt (per client IP).
  • Keep subsequent attempts blocked until the lockout expires; the existing login screen displays the countdown and disables its form while locked.
  • Update the database RPC and constraint to support five attempts, and update the login-flow comment.

Database deployment

This PR adds supabase/migrations/20260927170000_five_attempt_login_lockout.sql. Ensure this migration is applied to the production Supabase project as part of deployment; the server-side lockout depends on the database RPC being available.

Validation

Reviewed the application threshold, SQL threshold, lockout return fields, and existing UI countdown/blocking flow for consistency. Full build and live Supabase login tests have not been run in this environment.

@vercel

vercel Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
codeforgedev Ready Ready Preview Sep 27, 2026 11:06am UTC

@SamRepository25
SamRepository25 merged commit 70717c0 into main Sep 27, 2026
6 checks passed
@SamRepository25 SamRepository25 changed the title Preserve invalid-password feedback when lockout recording fails Fix five-attempt admin login lockout and preserve invalid-password feedback Sep 27, 2026

This branch was successfully deployed

1 active deployment
Preview — 0af1f05a Deployed Sep 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant