Files
Gogs/models
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
..
2018-08-16 20:26:09 +08:00
2019-08-08 23:53:43 -07:00
2018-12-11 22:00:01 -05:00
2018-08-16 20:26:09 +08:00
2018-05-27 08:53:48 +08:00
2018-05-27 08:53:48 +08:00
2018-08-16 20:26:09 +08:00
2018-08-16 20:26:09 +08:00
2014-04-13 03:14:43 -04:00
2016-08-12 02:56:50 -07:00
2018-08-16 20:26:09 +08:00
2018-08-16 20:26:09 +08:00
2018-08-16 20:26:09 +08:00
2018-08-16 20:26:09 +08:00
2018-05-27 08:53:48 +08:00
2019-04-11 22:22:49 -04:00
2018-05-27 08:53:48 +08:00
2018-08-16 20:26:09 +08:00
2018-05-27 08:53:48 +08:00
2018-08-16 20:26:09 +08:00
2018-05-27 08:53:48 +08:00