pucardotorg / dristi

MIT License
2 stars 12 forks source link

[Security]: Define proper error page and error message #2151

Open suresh12 opened 2 weeks ago

suresh12 commented 2 weeks ago

When a user tries to access a restricted page by changing the URL, system takes them to an error page. This page does not say anything right now, other than "Something went wrong". We need a better designed error page and proper error message.

To Reproduce Steps to reproduce the behavior:

  1. In one tab Login as citizen
  2. Go to home page
  3. In another tab login as Nyay Mitra
  4. Go to home page, view cases and open a case
  5. Take the URL and paste in the first tab
  6. System will take you to an error page, which says "Something went wrong"

Expected behavior Error Page should look like an error page also should include proper error message saying that "You are not authorised to access the page requested"

Screenshots

image
atulgupta2024 commented 2 weeks ago

@Taherabharmal do look into this - need a proper HTML error page. could be multiple pages for different conditions