fix(ui): update wording for password lockout message
All checks were successful
Automated Container Build / build-and-push (push) Successful in 39s

This commit is contained in:
Elijah 2026-05-23 17:13:08 -07:00
parent 78ba0bf2d5
commit 7d3f3088ef

View file

@ -155,12 +155,11 @@ export default function PublicSharePage({ params }: { params: Promise<{ id: stri
{showPassword ? <EyeOff className="w-5 h-5" /> : <Eye className="w-5 h-5" />}
</button>
</div>
{passwordError && (
{lockoutTime > 0 ? (
<p className="mt-2 text-sm text-red-400">Too many incorrect attempts, try again in {lockoutTime} seconds</p>
) : passwordError ? (
<p className="mt-2 text-sm text-red-400">{passwordError}</p>
)}
{lockoutTime > 0 && (
<p className="mt-2 text-sm text-yellow-400">Locked out. Try again in {lockoutTime}s.</p>
)}
) : null}
</div>
<button
type="submit"