githaven/routers/api/v1
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>
2020-04-13 22:02:48 +03:00
..
admin Various fixes in login sources (#10428) 2020-02-23 13:52:05 -06:00
misc Add gitea-vet (#10948) 2020-04-05 07:20:50 +01:00
notify [Api] Check Notify (always return json) (#10059) 2020-04-10 19:49:39 -04:00
org Add Organization Wide Labels (#10814) 2020-04-01 01:14:46 -03:00
repo [API] Get a single commit via Ref (#10915) 2020-04-07 22:54:46 -04:00
swagger adds API endpoints to manage OAuth2 Application (list/create/delete) (#10437) 2020-02-29 03:19:32 -03:00
user Reject duplicate AccessToken names (#10994) 2020-04-13 22:02:48 +03:00
utils Granular webhook events (#9626) 2020-03-06 07:10:48 +02:00
api.go Add Get/Update for api/v1/user/applications/oauth2 (#11008) 2020-04-09 19:37:31 -05:00