Skip to content

Commit

Permalink
Log usages of invite links
Browse files Browse the repository at this point in the history
  • Loading branch information
foodelevator committed Oct 31, 2024
1 parent d3df230 commit b0a8d03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/user/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,5 +145,6 @@ func (s *service) FinishInvite(w http.ResponseWriter, r *http.Request, kthid str
return true, err
}
http.SetCookie(w, &http.Cookie{Name: "invite", MaxAge: -1})
slog.Info("User invite link used", "kthid", kthid, "invite-id", inv.ID)
return true, s.LoginUser(r.Context(), kthid)
}

0 comments on commit b0a8d03

Please sign in to comment.