gogs/models/errors
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
..
errors.go repo/editor: hide internal error detail 2018-08-17 23:35:53 +08:00
issue.go issue: fix redirect to random issue if index does not exist (#4315) 2017-03-22 13:20:29 -04:00
login_source.go auth: support authentication source config file (#3142) 2018-04-12 09:55:58 -04:00
org.go routes/api: change status handle to new style 2018-12-01 21:41:30 -05:00
repo.go models: move ErrBranchNotExist to errors package 2018-03-08 07:15:55 -05:00
token.go token: disallow multiple tokens with same name (#5820) 2019-10-15 14:09:47 -07:00
two_factor.go 2fa: initial support (#945) 2017-04-06 00:14:30 -04:00
user.go
user_mail.go
webhook.go repo/webhook: able to retrigger delivery history (#2187) 2017-03-19 17:44:46 -04:00