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 50391d9 commit ca5b095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/internal/handlers/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func (h *Handler) HandleAuthenticate(w http.ResponseWriter, r *http.Request) {
// Set some initial values
session.Values["authenticated"] = false
oneTimeToken := generateSessionID()
oneTimeStore[oneTimeToken] = false
oneTimeStore[oneTimeToken] = TokenInfo{false, ""}
session.Values["oneTimeToken"] = oneTimeToken
if err := session.Save(r, w); err != nil {
http.Error(w, "Internal Server Error", http.StatusInternalServerError)
Expand Down

0 comments on commit ca5b095

Please sign in to comment.