6543
d5b6931dbe
[API] Delete Token accept names too ( #12366 )
* Delete Token accept names too
* better description
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years ago
Lunny Xiao
1dd3f19ee3
Use google/uuid to instead satori/go.uuid ( #11943 )
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years ago
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
6543
b65e954f73
FIX Pagination of ListAccessTokens and GetIssueWatchers ( #10449 )
* fix a pagination bug
* fix pagination of ListAccessTokens
4 years ago
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 years ago
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
5 years ago
techknowlogick
46373e7657
Hash App token ( #6724 )
5 years ago
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
7 years ago
Ethan Koenig
aa962deec0
Replace deprecated Id method with ID ( #2655 )
7 years ago
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
7 years ago
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
7 years ago
Andrey Nering
84b7d29d34
Create missing database indexes ( #596 )
7 years ago
Lunny Xiao
b4c794058a
fixed vulnerabilities ( #392 )
8 years ago
Bwko
081c2a9395
Lint models/token.go ( #244 )
8 years ago
Thibault Meyer
a4454f5d0f
Rewrite XORM queries
8 years ago
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
8 years ago
Rémy Boulanouar
2d68bd1ef9
Change import reference to match gitea instead of gogs ( #37 )
8 years ago
Unknwon
250be011c7
Remove redundant Unix timestamp method call
Unix() already uses UTC as timezone
8 years ago
Franz Schmidt
8b35c194ec
Fixes #3110 ( #3136 )
8 years ago
Unknwon
ad513a20e9
#2302 Replace time.Time with Unix Timestamp (int64)
8 years ago
Unknwon
ac78bae7b5
Replace uuid module with original package
8 years ago
zhuharev
0d5dc8a064
typo fix
9 years ago
Unknwon
52ec80fa18
finish all new user settings UI
9 years ago
Unknwon
2ac8e11f46
#842 able to use access token replace basic auth
9 years ago
Unknwon
03b85b73af
token recent activity
9 years ago
Unknwon
4c7b6414eb
new access token UI
9 years ago
Unknwon
407385db7e
work on #1493
9 years ago
Unknwon
ba77a3b0b4
routers/repo/http.go: allow HTTP push/pull by token for #845
9 years ago
Christopher Brickley
d0827e5d5e
allow http push by token - #842
10 years ago
Unknwon
8c9338a537
add personal access token panel #12
10 years ago