gitea/routers/user
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>
..
setting Reject duplicate AccessToken names ()
auth.go Admin page for managing user e-mail activation ()
auth_openid.go Various fixes in login sources ()
avatar.go make avatar lookup occur at image request ()
home.go remove package code.gitea.io/gitea/modules/git import out of models ()
home_test.go Fix milestones too many SQL variables bug ()
main_test.go Unit tests for wiki routers ()
notification.go Protect against NPEs in notifications list ()
oauth.go Use gitea forked macaron ()
profile.go Language statistics bar for repositories ()