Skip to content

Commit bda12eb

Browse files
author
Björn Urban
committed
fix: set user to authenticate
1 parent 03d0d92 commit bda12eb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

backend/internal/handlers/auth.go

-4
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,6 @@ func (h *Handler) HandleAuthenticate(w http.ResponseWriter, r *http.Request) {
267267
}
268268
slog.Info("Incoming session is authenticated")
269269
sessionUser, ok := session.Values["user"].(string)
270-
if !ok {
271-
h.logError(w, "error while fetching user details from session", err, http.StatusInternalServerError)
272-
return
273-
}
274270
if sessionUser == "" {
275271
sessionUser = oneTimeStore[token].user
276272
}

0 commit comments

Comments
 (0)