forgejo/routers/user/setting
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
..
account.go ui:Add flash notify for email preference seting success (#11027) 2020-04-09 13:22:17 -04:00
account_test.go Add password requirement info on error (#9074) 2019-11-19 22:44:58 +00:00
applications.go Reject duplicate AccessToken names (#10994) 2020-04-13 22:02:48 +03:00
keys.go Use ErrKeyUnableToVerify if fail to calc fingerprint in ssh-keygen (#10863) 2020-03-28 19:24:55 +02:00
main_test.go
oauth2.go OAuth2 Grant UI (#6625) 2019-04-17 16:18:16 +08:00
profile.go Various fixes in login sources (#10428) 2020-02-23 13:52:05 -06:00
security.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
security_openid.go
security_twofa.go Fixed ineffectual assignments (#7555) 2019-07-22 17:35:53 +08:00
security_u2f.go Add golangci (#6418) 2019-06-12 15:41:28 -04:00