Compare commits
7 Commits
8080313c85
...
119e87ba49
| Author | SHA1 | Date | |
|---|---|---|---|
| 119e87ba49 | |||
|
|
10f1fb69bd | ||
|
|
10de51a39b | ||
|
|
59488de8e7 | ||
| b214ffdf9a | |||
|
|
0b56297547 | ||
|
|
dd8bdcaa81 |
@ -26,11 +26,13 @@ func (s *Server) HomePageHandler(ctx *gin.Context) {
|
|||||||
loggedIn := domain.IsLoggedIn(ctx)
|
loggedIn := domain.IsLoggedIn(ctx)
|
||||||
|
|
||||||
// Ensure user is logged in with a valid account
|
// Ensure user is logged in with a valid account
|
||||||
if user := s.deps.UserService.GetAuthenicatedUser(ctx); user == nil {
|
if loggedIn {
|
||||||
// Log (stale) user out
|
if user := s.deps.UserService.GetAuthenicatedUser(ctx); user == nil {
|
||||||
s.SetCookie(ctx, "jwt_token", "", -1)
|
// Log (stale) user out
|
||||||
s.SetCookie(ctx, "search-filters", "", -1)
|
s.SetCookie(ctx, "jwt_token", "", -1)
|
||||||
loggedIn = false
|
s.SetCookie(ctx, "search-filters", "", -1)
|
||||||
|
loggedIn = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var page templ.Component
|
var page templ.Component
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user