Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ node_modules/
dist/
.vercel
*.local
.npm-cache/
.npm/
.vscode/
!.vscode/extensions.json
Comment on lines +27 to +30

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
git check-ignore -v .vscode/extensions.json

Repository: ritesh-1918/HELPDESK.AI

Length of output: 208


Rework the .vscode ignore rule

Ignoring the directory itself prevents !.vscode/extensions.json from bringing that file back in. Use .vscode/* instead, or unignore .vscode/ before the exception.

Suggested fix
-.vscode/
+.vscode/*
 !.vscode/extensions.json
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
.npm-cache/
.npm/
.vscode/
!.vscode/extensions.json
.npm-cache/
.npm/
.vscode/*
!.vscode/extensions.json
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.gitignore around lines 27 - 30, The .gitignore rule for .vscode currently
ignores the directory itself, which blocks the later exception for
extensions.json. Update the ignore pattern to target the contents of .vscode
instead, or explicitly unignore the .vscode directory before the
!.vscode/extensions.json exception so the file can be tracked correctly.


# Docs / Artifacts
docs/helpdesk*.pdf
Expand Down
Empty file.
6 changes: 0 additions & 6 deletions .vscode/settings.json

This file was deleted.

7 changes: 4 additions & 3 deletions backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,8 @@ class SignupBody(BaseModel):
company: str | None = None

@app.post("/auth/login")
async def auth_login(body: LoginBody, response: Response):
@limiter.limit("10/minute")
async def auth_login(body: LoginBody, request: Request, response: Response):
if not supabase:
raise HTTPException(status_code=503, detail="Database connection offline")
try:
Expand All @@ -1171,7 +1172,8 @@ async def auth_login(body: LoginBody, response: Response):
return {"user": user_payload, "message": "Session cookies set"}

@app.post("/auth/signup")
async def auth_signup(body: SignupBody, response: Response):
@limiter.limit("5/minute")
async def auth_signup(body: SignupBody, request: Request, response: Response):
if not supabase:
raise HTTPException(status_code=503, detail="Database connection offline")
metadata = {}
Expand Down Expand Up @@ -1208,4 +1210,3 @@ async def auth_logout(response: Response):
@app.get("/auth/me")
async def auth_me(user: dict = Depends(get_current_user)):
return {"user": user}

Loading