Compare commits
No commits in common. "f93ff6501a7cd201e6f6da1f769a9e9296248b9b" and "e6a387744ed9e1d02aec24d818546c82d772f9ab" have entirely different histories.
f93ff6501a
...
e6a387744e
@ -26,13 +26,11 @@ 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 loggedIn {
|
if user := s.deps.UserService.GetAuthenicatedUser(ctx); user == nil {
|
||||||
if user := s.deps.UserService.GetAuthenicatedUser(ctx); user == nil {
|
// Log (stale) user out
|
||||||
// Log (stale) user out
|
s.SetCookie(ctx, "jwt_token", "", -1)
|
||||||
s.SetCookie(ctx, "jwt_token", "", -1)
|
s.SetCookie(ctx, "search-filters", "", -1)
|
||||||
s.SetCookie(ctx, "search-filters", "", -1)
|
loggedIn = false
|
||||||
loggedIn = false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var page templ.Component
|
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