forgejo/routers/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
..
setting Reject duplicate AccessToken names (#10994) 2020-04-13 22:02:48 +03:00
auth.go Admin page for managing user e-mail activation (#10557) 2020-03-02 15:25:36 -03:00
auth_openid.go
avatar.go make avatar lookup occur at image request (#10540) 2020-03-27 14:34:39 +02:00
home.go remove package code.gitea.io/gitea/modules/git import out of models (#11025) 2020-04-10 14:26:37 +03:00
home_test.go Fix milestones too many SQL variables bug (#10880) 2020-03-31 10:47:00 +03:00
main_test.go
notification.go Protect against NPEs in notifications list (#10879) 2020-03-29 20:51:14 +01:00
oauth.go
profile.go