add getting user

This commit is contained in:
2026-04-19 00:37:49 +02:00
parent a47654428c
commit a0140ec0a7
5 changed files with 50 additions and 14 deletions
@@ -333,6 +333,7 @@ func HandleUserGetConnections(response http.ResponseWriter, request *http.Reques
return
}
ctx := request.Context()
user, err := getUserByToken(ctx, request.FormValue("token"))
if err != nil {
http.Error(response, "invalid token", http.StatusUnauthorized)