Compare commits

..

No commits in common. "0b562975476682e30ae01513817d76f88a15298b" and "479e709b4eb17fd12ba308548868c47205b0d51e" have entirely different histories.

2 changed files with 6 additions and 1799 deletions

View File

@ -26,13 +26,11 @@ func (s *Server) HomePageHandler(ctx *gin.Context) {
loggedIn := domain.IsLoggedIn(ctx)
// Ensure user is logged in with a valid account
if loggedIn {
if user := s.deps.UserService.GetAuthenicatedUser(ctx); user == nil {
// Log (stale) user out
s.SetCookie(ctx, "jwt_token", "", -1)
s.SetCookie(ctx, "search-filters", "", -1)
loggedIn = false
}
if user := s.deps.UserService.GetAuthenicatedUser(ctx); user == nil {
// Log (stale) user out
s.SetCookie(ctx, "jwt_token", "", -1)
s.SetCookie(ctx, "search-filters", "", -1)
loggedIn = false
}
var page templ.Component

File diff suppressed because it is too large Load Diff