Compare commits
9 Commits
e6a387744e
...
f93ff6501a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f93ff6501a | ||
| 119e87ba49 | |||
|
|
10f1fb69bd | ||
|
|
10de51a39b | ||
|
|
59488de8e7 | ||
| b214ffdf9a | |||
|
|
0b56297547 | ||
|
|
dd8bdcaa81 | ||
| 8080313c85 |
@ -26,11 +26,13 @@ func (s *Server) HomePageHandler(ctx *gin.Context) {
|
||||
loggedIn := domain.IsLoggedIn(ctx)
|
||||
|
||||
// Ensure user is logged in with a valid account
|
||||
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 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
|
||||
}
|
||||
}
|
||||
|
||||
var page templ.Component
|
||||
|
||||
1793
web/src/index.css
1793
web/src/index.css
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user