Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit 2858b80

Browse files
techknowlogicklunny
authored andcommitted
Struct changes to satisfy #3789 (#160)
* Struct changes to satisfy go-gitea/gitea#3789 * Update user_app.go * update per feedback * copyright header
1 parent 7d954d7 commit 2858b80

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

gitea/user_app.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Copyright 2014 The Gogs Authors. All rights reserved.
2+
// Copyright 2019 The Gitea Authors. All rights reserved.
23
// Use of this source code is governed by a MIT-style
34
// license that can be found in the LICENSE file.
45

@@ -17,12 +18,14 @@ func BasicAuthEncode(user, pass string) string {
1718
return base64.StdEncoding.EncodeToString([]byte(user + ":" + pass))
1819
}
1920

20-
// AccessToken represents a API access token.
21+
// AccessToken represents an API access token.
2122
// swagger:response AccessToken
2223
type AccessToken struct {
23-
ID int64 `json:"id"`
24-
Name string `json:"name"`
25-
Sha1 string `json:"sha1"`
24+
ID int64 `json:"id"`
25+
Name string `json:"name"`
26+
Token string `json:"token"`
27+
HashedToken string `json:"hashed_token"`
28+
TokenLastEight string `json:"token_last_eight"`
2629
}
2730

2831
// AccessTokenList represents a list of API access token.

0 commit comments

Comments
 (0)