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