Skip to content

Fix admin login authorization feedback - #89

Merged
SamRepository25 merged 1 commit into
mainfrom
fix/admin-login-denial-and-lockout-errors
Sep 27, 2026
Merged

SamRepository25 merged 1 commit into
mainfrom
fix/admin-login-denial-and-lockout-errors

Conversation

@SamRepository25

Copy link
Copy Markdown
Owner

Summary

  • Return a clear admin-only message when valid credentials belong to a non-admin account.
  • Avoid counting a correctly authenticated non-admin account as a failed-password attempt.
  • Log admin-role lookup failures and return a distinct authorization-verification error.
  • Replace the confusing failed-attempt RPC error with a safer login-security-check message while preserving fail-closed behavior.

Validation

  • Source-level review of the login flow. Production behavior still depends on the deployed Supabase login-lockout RPC migrations and service-role configuration.

@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 10:50am UTC

@SamRepository25
SamRepository25 merged commit d31183f into main Sep 27, 2026
6 checks passed

This branch was successfully deployed

1 active deployment
Preview — d3ca87d4 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