mirror of
https://github.com/mgeeky/decode-spam-headers.git
synced 2026-02-22 05:23:31 +01:00
MAESTRO: fix lint issues
This commit is contained in:
@@ -46,5 +46,5 @@ This phase protects the analysis service from abuse with per-IP rate limiting an
|
||||
- [x] All routers and CORS middleware are registered in `main.py`
|
||||
- [x] Application starts statelessly — no database, no session management. Verified `backend/app/main.py` registers only CORS + rate limiter middleware and does not initialize any DB/session services.
|
||||
- [x] CAPTCHA modal is keyboard accessible (Tab, Enter, Escape to close)
|
||||
- [ ] Linting passes on both sides
|
||||
- [x] Linting passes on both sides
|
||||
- [ ] Run `/speckit.analyze` to verify consistency
|
||||
|
||||
@@ -63,7 +63,10 @@ async def test_captcha_verify_returns_bypass_token() -> None:
|
||||
) as client:
|
||||
response = await client.post(
|
||||
"/api/captcha/verify",
|
||||
json={"challengeToken": challenge.challenge_token, "answer": challenge.answer},
|
||||
json={
|
||||
"challengeToken": challenge.challenge_token,
|
||||
"answer": challenge.answer,
|
||||
},
|
||||
headers={"x-forwarded-for": client_ip},
|
||||
)
|
||||
|
||||
|
||||
@@ -189,6 +189,7 @@ export default function CaptchaChallenge({
|
||||
|
||||
<div className="mt-5 flex flex-col gap-4">
|
||||
<div className="rounded-xl border border-info/20 bg-background/50 p-4">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
src={`data:image/png;base64,${challenge.imageBase64}`}
|
||||
alt="CAPTCHA challenge"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const createLocalStorageMock = () => {
|
||||
let store = new Map<string, string>();
|
||||
const store = new Map<string, string>();
|
||||
|
||||
return {
|
||||
get length() {
|
||||
|
||||
Reference in New Issue
Block a user