gitea/routers
6543 ad5c43ae5d
Reject duplicate AccessToken names ()
* make sure duplicate token names cannot be used

* add check to api routes too

* add @lunny s suggestion

* fix & don't forget User.ID

* AccessTokenByNameExists() return error too

* unique token for each test

* fix lint

Signed-off-by: 6543 <6543@obermui.de>

Co-authored-by: Lanre Adelowo <yo@lanre.wtf>
2020-04-13 22:02:48 +03:00
..
admin Users should not be able to prohibit their own login () 2020-04-06 10:23:15 -04:00
api/v1 Reject duplicate AccessToken names () 2020-04-13 22:02:48 +03:00
dev
org
private
repo remove package code.gitea.io/gitea/modules/git import out of models () 2020-04-10 14:26:37 +03:00
routes [suggest] change merge strategy: do not check write access if user in merge white list () 2020-04-08 14:26:50 +03:00
user Reject duplicate AccessToken names () 2020-04-13 22:02:48 +03:00
utils
home.go
init.go
install.go
metrics.go
swagger_json.go Add gitea-vet () 2020-04-05 07:20:50 +01:00