Repository navigation
feat(platform): advise of lockout risk on a failed login - #1811
Conversation
|
Warning Review limit reached
More reviews will be available in 17 minutes and 54 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Addresses #1566: a failed sign-in gave no hint that repeated failures lock the account, so the lockout felt like it came out of nowhere. Shows a calm, muted advisory beneath the error on a failed credential attempt — "Repeated failed attempts will temporarily lock the account." — and not once the account is already locked (the lockout message stands on its own). Deliberately count-free: the issue asked for an "N attempts remaining" counter, but in an audited deployment a live counter breaks the uniform "wrong email or password" response (confirming an account exists) and hands an attacker a brute-force budget. The advisory conveys the consequence without leaking either. en/de/fr strings added. Refs #1566
7c6770d to
3728dee
Compare
|
Pre-emptively ran the CodeRabbit CLI and applied both findings: the post-await fallback now tracks an |
What
Addresses #1566. A failed sign-in gave the user no hint that repeated failures lock the account, so the lockout felt like it came out of nowhere — only the admin was notified.
Now a failed credential attempt shows a calm, muted advisory beneath the error:
It is not shown once the account is already locked (the lockout countdown message stands on its own).
Why not an "N attempts remaining" counter
The issue requested a progressive counter. In an audited deployment that is a security regression, so it is deliberately not implemented:
The standing advisory conveys the consequence (so the user isn't surprised) without leaking either signal. An emailed owner alert was considered but the platform has no transactional-email infrastructure (
requireEmailVerification: false, password reset is admin-managed), so it's out of scope here.Changes
log-in.tsx: ashowLockoutHintstate, set on a failed credential attempt and cleared on lockout / new submit; muted advisory line under the error.en/de/fr:auth.login.lockoutAdvisory.Verification
typecheck·lint· i18n parity/usage green.Refs #1566.