gogs/routes
Frode Aannevik ffbb0f6a60 token: disallow multiple tokens with same name (#5820)
* api/v1: don't allow multiple tokens with same name

Fail with 422 Unprocessable Entity if the token name
already exist

ref: https://github.com/gogs/gogs/issues/5587

* Move new token error type to models/errors/token

* Remove "useless" ListAccessTokensByName function

* Add an i18n entry for token_name_exists
2019-10-15 14:09:47 -07:00
..
admin auth: coding style and glitches fixes for GitHub login source (#5340) 2018-12-18 16:46:50 -05:00
api/v1 token: disallow multiple tokens with same name (#5820) 2019-10-15 14:09:47 -07:00
dev *: rename "gogits" to "gogs" 2018-05-27 08:53:48 +08:00
org *: rename "gogits" to "gogs" 2018-05-27 08:53:48 +08:00
repo repo: allow admin to remove observers from the repository (#5782) (#5803) 2019-09-21 20:37:20 -07:00
user token: disallow multiple tokens with same name (#5820) 2019-10-15 14:09:47 -07:00
home.go *: rename "gogits" to "gogs" 2018-05-27 08:53:48 +08:00
install.go *: rename "gogits" to "gogs" 2018-05-27 08:53:48 +08:00