Compare commits

...

2 Commits

Author SHA1 Message Date
Hayden Hargreaves
0b56297547 Merge branch 'dev' of gitea:azpect/Potion into dev 2025-10-30 11:59:32 -07:00
Hayden Hargreaves
dd8bdcaa81 (FIX): Small update from apollo 2025-10-30 11:58:17 -07:00
2 changed files with 1799 additions and 6 deletions

View File

@ -26,12 +26,14 @@ 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
}
}
var page templ.Component
if loggedIn {

File diff suppressed because it is too large Load Diff