Skip to content

Commit

Permalink
fix: set user to authenticate
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Urban committed May 1, 2024
1 parent 03d0d92 commit bda12eb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions backend/internal/handlers/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,6 @@ func (h *Handler) HandleAuthenticate(w http.ResponseWriter, r *http.Request) {
}
slog.Info("Incoming session is authenticated")
sessionUser, ok := session.Values["user"].(string)
if !ok {
h.logError(w, "error while fetching user details from session", err, http.StatusInternalServerError)
return
}
if sessionUser == "" {
sessionUser = oneTimeStore[token].user
}
Expand Down

0 comments on commit bda12eb

Please sign in to comment.