diff options
author | Unknwon <u@gogs.io> | 2015-08-19 03:36:16 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-19 03:36:16 +0800 |
commit | 4c7b6414eb91d12473ee0000bc3fccfd105feef9 (patch) | |
tree | fcba9eec9c31d4c77cb69b4afaa0eecac2d94e7c /models/token.go | |
parent | 2e8ffc2ffb31379998142e807f0066d5d9846c2c (diff) | |
download | gitea-4c7b6414eb91d12473ee0000bc3fccfd105feef9.tar.gz gitea-4c7b6414eb91d12473ee0000bc3fccfd105feef9.zip |
new access token UI
Diffstat (limited to 'models/token.go')
-rw-r--r-- | models/token.go | 4 |
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 } |