aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/packages/nuget/auth.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2024-09-05 15:05:42 +0800
committerGitHub <noreply@github.com>2024-09-05 07:05:42 +0000
commit5c05dddbed8247a4fb272619f1eb7cf090443b8b (patch)
treef929b204ebe00f0162b87bacd73b884b7d6971f7 /routers/api/packages/nuget/auth.go
parent74b1c589c6c1a4261556e1a1a868bbcb2964a5d3 (diff)
downloadgitea-5c05dddbed8247a4fb272619f1eb7cf090443b8b.tar.gz
gitea-5c05dddbed8247a4fb272619f1eb7cf090443b8b.zip
Fix nuget/conan/container packages upload bugs (#31967)
Diffstat (limited to 'routers/api/packages/nuget/auth.go')
-rw-r--r--routers/api/packages/nuget/auth.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/api/packages/nuget/auth.go b/routers/api/packages/nuget/auth.go
index 1bb68d059b..e81ad01b2b 100644
--- a/routers/api/packages/nuget/auth.go
+++ b/routers/api/packages/nuget/auth.go
@@ -43,5 +43,8 @@ func (a *Auth) Verify(req *http.Request, w http.ResponseWriter, store auth.DataS
log.Error("UpdateAccessToken: %v", err)
}
+ store.GetData()["IsApiToken"] = true
+ store.GetData()["ApiToken"] = token
+
return u, nil
}