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 år sedan
6543
b65e954f73
FIX Pagination of ListAccessTokens and GetIssueWatchers (#10449)
* fix a pagination bug
* fix pagination of ListAccessTokens
4 år sedan
SpaWn2KiLl
1f01f53c53
API add/generalize pagination (#9452)
* paginate results
* fixed deadlock
* prevented breaking change
* updated swagger
* go fmt
* fixed find topic
* go mod tidy
* go mod vendor with go1.13.5
* fixed repo find topics
* fixed unit test
* added Limit method to Engine struct; use engine variable when provided; fixed gitignore
* use ItemsPerPage for default pagesize; fix GetWatchers, getOrgUsersByOrgID and GetStargazers; fix GetAllCommits headers; reverted some changed behaviors
* set Page value on Home route
* improved memory allocations
* fixed response headers
* removed logfiles
* fixed import order
* import order
* improved swagger
* added function to get models.ListOptions from context
* removed pagesize diff on unit test
* fixed imports
* removed unnecessary struct field
* fixed go fmt
* scoped PR
* code improvements
* code improvements
* go mod tidy
* fixed import order
* fixed commit statuses session
* fixed files headers
* fixed headers; added pagination for notifications
* go mod tidy
* go fmt
* removed Private from user search options; added setting.UI.IssuePagingNum as default valeu on repo's issues list
* Apply suggestions from code review
Co-Authored-By: 6543 <6543@obermui.de>
Co-Authored-By: zeripath <art27@cantab.net>
* fixed build error
* CI.restart()
* fixed merge conflicts resolve
* fixed conflicts resolve
* improved FindTrackedTimesOptions.ToOptions() method
* added backwards compatibility on ListReleases request; fixed issue tracked time ToSession
* fixed build error; fixed swagger template
* fixed swagger template
* fixed ListReleases backwards compatibility
* added page to user search route
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: zeripath <art27@cantab.net>
4 år sedan
Lunny Xiao
85202d4784
Display ui time with customize time location (#7792)
* display ui time with customize time location
* fix lint
* rename UILocation to DefaultUILocation
* move time related functions to modules/timeutil
* fix tests
* fix tests
* fix build
* fix swagger
4 år sedan
techknowlogick
46373e7657
Hash App token (#6724)
5 år sedan
Lunny Xiao
f2e20c81b6
Refactor struct's time to remove unnecessary memory usage (#3142)
* refactor struct's time to remove unnecessary memory usage
* use AsTimePtr simple code
* fix tests
* fix time compare
* fix template on gpg
* use AddDuration instead of Add
6 år sedan
Ethan Koenig
aa962deec0
Replace deprecated Id method with ID (#2655)
6 år sedan
Lunny Xiao
a8717e5e3a
Use AfterLoad instead of AfterSet on Structs (#2628)
* use AfterLoad instead of AfterSet on Structs
* fix the comments on AfterLoad
* fix the comments on action AfterLoad
6 år sedan
Lunny Xiao
005900baea
Use created & updated instead BeforeInsert & BeforeUpdate (#2482)
* use created & updated instead BeforeInsert & BeforeUpdate
* fix vendor checksum
* only show generated SQL when development mode
* remove extra update column updated_unix
* remove trace config
6 år sedan
Andrey Nering
84b7d29d34
Create missing database indexes (#596)
7 år sedan
Lunny Xiao
b4c794058a
fixed vulnerabilities (#392)
7 år sedan
Bwko
081c2a9395
Lint models/token.go (#244)
7 år sedan
Thibault Meyer
a4454f5d0f
Rewrite XORM queries
7 år sedan
Sandro Santilli
4247304f5a
Update import paths from github.com/go-gitea to code.gitea.io (#135)
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis
See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
7 år sedan
Rémy Boulanouar
2d68bd1ef9
Change import reference to match gitea instead of gogs (#37)
7 år sedan
Unknwon
250be011c7
Remove redundant Unix timestamp method call
Unix() already uses UTC as timezone
8 år sedan
Franz Schmidt
8b35c194ec
Fixes #3110 (#3136)
8 år sedan
Unknwon
ad513a20e9
#2302 Replace time.Time with Unix Timestamp (int64)
8 år sedan
Unknwon
ac78bae7b5
Replace uuid module with original package
8 år sedan
zhuharev
0d5dc8a064
typo fix
8 år sedan
Unknwon
52ec80fa18
finish all new user settings UI
8 år sedan
Unknwon
2ac8e11f46
#842 able to use access token replace basic auth
8 år sedan
Unknwon
03b85b73af
token recent activity
9 år sedan
Unknwon
4c7b6414eb
new access token UI
9 år sedan
Unknwon
407385db7e
work on #1493
9 år sedan
Unknwon
ba77a3b0b4
routers/repo/http.go: allow HTTP push/pull by token for #845
9 år sedan
Christopher Brickley
d0827e5d5e
allow http push by token - #842
9 år sedan
Unknwon
8c9338a537
add personal access token panel #12
9 år sedan