This commit is contained in:
2026-06-08 15:27:06 +02:00
parent 8d2be395b9
commit 0f8c7f57ac
4 changed files with 61 additions and 28 deletions

View File

@@ -268,6 +268,8 @@ func UserInfo(w http.ResponseWriter, r *http.Request) {
if err != nil {
log.Println("GET [api/userinfo] " + r.RemoteAddr + ": " + err.Error())
http.Error(w, "Unauthorized: Invalid or expired token", http.StatusUnauthorized)
return
}
idParam = claims.UserID