Compare commits
No commits in common. "119e87ba4920e08a0fc0de1dcdc7a75be9fb6d5d" and "8080313c85d945d6328ba128c94cd804b4c946ea" have entirely different histories.
119e87ba49
...
8080313c85
@ -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
Loading…
x
Reference in New Issue
Block a user