Skip to content

🔐 Fix login + session, 🚔 police dashboard tips, 🧾 citizen case fetch#47

Open
VJLIVE wants to merge 1 commit into
AdityaRalhan:mainfrom
VJLIVE:login-logic-solved
Open

🔐 Fix login + session, 🚔 police dashboard tips, 🧾 citizen case fetch#47
VJLIVE wants to merge 1 commit into
AdityaRalhan:mainfrom
VJLIVE:login-logic-solved

Conversation

@VJLIVE
Copy link
Copy Markdown
Contributor

@VJLIVE VJLIVE commented Jun 25, 2025

  • Fixed login flow and stored JWT token in sessionStorage
  • Ensured logout properly clears session and redirects to home
  • Fetched open cases on citizen dashboard with authorization
  • Fetched pending anonymous tips in police dashboard with proper role checks
  • Updated anonymousController.js to return 200 on empty results
  • Improved tip and case rendering in dashboards
  • Minor UI enhancements for clarity and responsiveness
  • Created reusable Login component
  • Started setup for custom hooks (untracked)

@AdityaRalhan I think this issue should get an advanced as I had solved so many issues when I went through the website..

Fixes #38

- Fixed login flow and stored JWT token in sessionStorage
- Ensured logout properly clears session and redirects to home
- Fetched open cases on citizen dashboard with authorization
- Fetched pending anonymous tips in police dashboard with proper role checks
- Updated anonymousController.js to return 200 on empty results
- Improved tip and case rendering in dashboards
- Minor UI enhancements for clarity and responsiveness
- Created reusable Login component
- Started setup for custom hooks (untracked)

Co-authored-by: Aditya Ralhan <adityaralhan2005@gmail.com>
@VJLIVE
Copy link
Copy Markdown
Contributor Author

VJLIVE commented Jun 29, 2025

@AdityaRalhan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Login page requires name, but should only require email and password

2 participants