summaryrefslogtreecommitdiffstats
path: root/models/token.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-19 03:36:16 +0800
committerUnknwon <u@gogs.io>2015-08-19 03:36:16 +0800
commit4c7b6414eb91d12473ee0000bc3fccfd105feef9 (patch)
treefcba9eec9c31d4c77cb69b4afaa0eecac2d94e7c /models/token.go
parent2e8ffc2ffb31379998142e807f0066d5d9846c2c (diff)
downloadgitea-4c7b6414eb91d12473ee0000bc3fccfd105feef9.tar.gz
gitea-4c7b6414eb91d12473ee0000bc3fccfd105feef9.zip
new access token UI
Diffstat (limited to 'models/token.go')
-rw-r--r--models/token.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/token.go b/models/token.go
index d171827768..a95c453352 100644
--- a/models/token.go
+++ b/models/token.go
@@ -62,8 +62,8 @@ func ListAccessTokens(uid int64) ([]*AccessToken, error) {
return tokens, nil
}
-// DeleteAccessTokenById deletes access token by given ID.
-func DeleteAccessTokenById(id int64) error {
+// DeleteAccessTokenByID deletes access token by given ID.
+func DeleteAccessTokenByID(id int64) error {
_, err := x.Id(id).Delete(new(AccessToken))
return err
}