aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorFrode Aannevik <frode.aa@gmail.com>2019-10-15 23:09:47 +0200
committerUnknwon <u@gogs.io>2019-10-15 14:09:47 -0700
commitffbb0f6a60a000e42f26fd1e08925de1f2ff90be (patch)
tree2da6d91b9cdc3410b718a40cf98eddb3a4e1ddad /pkg
parent1c82c42cb357b4d1c190a30346f52e11427e8470 (diff)
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
Diffstat (limited to 'pkg')
0 files changed, 0 insertions, 0 deletions