Casvt / MIND

A simple self hosted reminder application that can send push notifications to your device. Set the reminder and forget about it!
https://casvt.github.io/MIND/
GNU General Public License v3.0
201 stars 10 forks source link

Accessing /reminders unauthentified causes infinite refresh loop #47

Closed bosam closed 1 year ago

bosam commented 1 year ago

Description of the bug When bypassing the login page and accessing /reminders without login, the reminders template page shows but refreshes infinitely.

To Reproduce

  1. Be sure not to be logged in
  2. Access the /reminders page by entering the address manually
  3. Notice how the client tries to communicate with the api but with a null value for api_key
  4. See the page refreshing like a tree on christmas

Expected behaviour Be redirected to the login page instead.

Screenshots N/A

Additional context This is caused by the general js code.

I found out about this issue by clicking on /reminders in the url address bar thinking it would automatically bring me to the login page.