summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/user
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2019-09-17 08:13:24 -0400
committerLauris BH <lauris@nix.lv>2019-09-17 15:13:24 +0300
commita60d3cbea2e64ed50b586bba7e8adc6983ef654c (patch)
treeaca6c1be649897ac6ecf90a4db85a79d19953995 /routers/api/v1/user
parenteec997d30ab299049f775609f2dd61041144ee74 (diff)
downloadgitea-a60d3cbea2e64ed50b586bba7e8adc6983ef654c.tar.gz
gitea-a60d3cbea2e64ed50b586bba7e8adc6983ef654c.zip
Remove legacy handling of drone token (#8191)
Now Drone has removed Gitea user/pass handling we can remove legacy handling
Diffstat (limited to 'routers/api/v1/user')
-rw-r--r--routers/api/v1/user/app.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/routers/api/v1/user/app.go b/routers/api/v1/user/app.go
index e42a3cb093..1123dadfd4 100644
--- a/routers/api/v1/user/app.go
+++ b/routers/api/v1/user/app.go
@@ -35,9 +35,6 @@ func ListAccessTokens(ctx *context.APIContext) {
apiTokens := make([]*api.AccessToken, len(tokens))
for i := range tokens {
- if tokens[i].Name == "drone" {
- tokens[i].Name = "drone-legacy-use-oauth2-instead"
- }
apiTokens[i] = &api.AccessToken{
ID: tokens[i].ID,
Name: tokens[i].Name,
@@ -78,9 +75,6 @@ func CreateAccessToken(ctx *context.APIContext, form api.CreateAccessTokenOption
UID: ctx.User.ID,
Name: form.Name,
}
- if t.Name == "drone" {
- t.Name = "drone-legacy-use-oauth2-instead"
- }
if err := models.NewAccessToken(t); err != nil {
ctx.Error(500, "NewAccessToken", err)
return