mirror of
https://github.com/mgeeky/decode-spam-headers.git
synced 2026-02-22 13:33:30 +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] 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] 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)
|
- [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
|
- [ ] Run `/speckit.analyze` to verify consistency
|
||||||
|
|||||||
@@ -63,7 +63,10 @@ async def test_captcha_verify_returns_bypass_token() -> None:
|
|||||||
) as client:
|
) as client:
|
||||||
response = await client.post(
|
response = await client.post(
|
||||||
"/api/captcha/verify",
|
"/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},
|
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="mt-5 flex flex-col gap-4">
|
||||||
<div className="rounded-xl border border-info/20 bg-background/50 p-4">
|
<div className="rounded-xl border border-info/20 bg-background/50 p-4">
|
||||||
|
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||||
<img
|
<img
|
||||||
src={`data:image/png;base64,${challenge.imageBase64}`}
|
src={`data:image/png;base64,${challenge.imageBase64}`}
|
||||||
alt="CAPTCHA challenge"
|
alt="CAPTCHA challenge"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
const createLocalStorageMock = () => {
|
const createLocalStorageMock = () => {
|
||||||
let store = new Map<string, string>();
|
const store = new Map<string, string>();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
get length() {
|
get length() {
|
||||||
|
|||||||
Reference in New Issue
Block a user