Skip to content

Require users to login before interacting with routes requiring authorization #26

@yttrian

Description

@yttrian

As a game server manager, I want it to be made clear that I need to login, so that I can use routes that require authorization.

Currently users can visit pages like "New Server" without being logged in. This is confusing because when they try to use the form they will get the following error:

Unexpected token u in JSON at position 4

These routes should be hidden from navigation if not logged in, and the user should be sent to the login page if trying to visit these routes.

Requirements

  • Hide routes requiring authorization from nav
  • Redirect users trying to visit authorized routes when not logged to login
  • Either show useful errors if auth expired after reaching a route or redirect

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfrontendWork to be done on the frontend

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions