forgejo/routers/api/v1/user
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
..
app.go Reject duplicate AccessToken names (#10994) 2020-04-13 22:02:48 +03:00
email.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
follower.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
gpg_key.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
key.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
repo.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
star.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
user.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
watch.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00