COSC-499-W2023 / year-long-project-team-1

PrivacyPal: A secure messaging and video sharing service (COSC499 Team 1)
Apache License 2.0
18 stars 3 forks source link

[Task] Update "User not logged in" conditionals to redirect to /login #803

Closed connordoman closed 7 months ago

connordoman commented 7 months ago
          Maybe wherever the user is not logged in, redirect them to `/login`? Wdyt?

_Originally posted by @tthvo in https://github.com/COSC-499-W2023/year-long-project-team-1/pull/792#discussion_r1550889904_

connordoman commented 7 months ago

Of course middleware.ts should redirect users automatically before this problem arises, but since we need a conditional to check the null status of the loggedInUser anyway we might as well have perform the same action.