We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eec997d commit a60d3cbCopy full SHA for a60d3cb
routers/api/v1/user/app.go
@@ -35,9 +35,6 @@ func ListAccessTokens(ctx *context.APIContext) {
35
36
apiTokens := make([]*api.AccessToken, len(tokens))
37
for i := range tokens {
38
- if tokens[i].Name == "drone" {
39
- tokens[i].Name = "drone-legacy-use-oauth2-instead"
40
- }
41
apiTokens[i] = &api.AccessToken{
42
ID: tokens[i].ID,
43
Name: tokens[i].Name,
@@ -78,9 +75,6 @@ func CreateAccessToken(ctx *context.APIContext, form api.CreateAccessTokenOption
78
75
UID: ctx.User.ID,
79
76
Name: form.Name,
80
77
}
81
- if t.Name == "drone" {
82
- t.Name = "drone-legacy-use-oauth2-instead"
83
84
if err := models.NewAccessToken(t); err != nil {
85
ctx.Error(500, "NewAccessToken", err)
86
return
0 commit comments