You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/routers
6543 ad5c43ae5d
Reject duplicate AccessToken names (#10994)
* 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>
4 years ago
..
admin Users should not be able to prohibit their own login (#10970) 4 years ago
api/v1 Reject duplicate AccessToken names (#10994) 4 years ago
dev Display ui time with customize time location (#7792) 5 years ago
org Add Organization Wide Labels (#10814) 4 years ago
private Allow to set protected file patterns that can not be changed under no conditions (#10806) 4 years ago
repo remove package code.gitea.io/gitea/modules/git import out of models (#11025) 4 years ago
routes [suggest] change merge strategy: do not check write access if user in merge white list (#10951) 4 years ago
user Reject duplicate AccessToken names (#10994) 4 years ago
utils Handle push rejection message in Merge & Web Editor (#10373) 4 years ago
home.go Add detected file language to code search (#10256) 4 years ago
init.go Language statistics bar for repositories (#8037) 4 years ago
install.go Add support for database schema in PostgreSQL (#8819) 5 years ago
metrics.go Use gitea forked macaron (#7933) 5 years ago
swagger_json.go Add gitea-vet (#10948) 4 years ago