6543
b3139bc669
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>
5 years ago
6543
9157848fe4
FIX Pagination of ListAccessTokens and GetIssueWatchers ( #10449 )
* fix a pagination bug
* fix pagination of ListAccessTokens
5 years ago
SpaWn2KiLl
539bd27f9f
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>
5 years ago
Lunny Xiao
4672db87bd
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
6 years ago
techknowlogick
1115700cd0
Hash App token ( #6724 )
6 years ago
Lunny Xiao
a5c212cd1e
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
8 years ago
Ethan Koenig
a186f896eb
Replace deprecated Id method with ID ( #2655 )
8 years ago
Lunny Xiao
c2b107fcb0
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
8 years ago
Lunny Xiao
d00b7dab75
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
8 years ago
Andrey Nering
57b5bd07c9
Create missing database indexes ( #596 )
9 years ago
Lunny Xiao
e0f49993f5
fixed vulnerabilities ( #392 )
9 years ago
Bwko
b65ee26508
Lint models/token.go ( #244 )
9 years ago
Thibault Meyer
b747797b29
Merge remote-tracking branch 'upstream/master' into feature/rewrite-xorm-queries
# Conflicts:
# models/git_diff.go
# models/issue.go
# models/org.go
# models/pull.go
# models/repo.go
9 years ago
Thibault Meyer
5d29fda874
Rewrite XORM queries
9 years ago
Sandro Santilli
cb1b3cc148
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
9 years ago
Rémy Boulanouar
9712d5ee89
Change import reference to match gitea instead of gogs ( #37 )
9 years ago
Unknwon
d61bcdc10b
Remove redundant Unix timestamp method call
Unix() already uses UTC as timezone
9 years ago
Franz Schmidt
602d1f4200
Fixes #3110 ( #3136 )
9 years ago
Unknwon
9f43369667
#2302 Replace time.Time with Unix Timestamp (int64)
9 years ago
Unknwon
b1198310bb
Replace uuid module with original package
9 years ago
zhuharev
43e7e4a4a2
typo fix
10 years ago
Unknwon
c01712659a
finish all new user settings UI
10 years ago
Unknwon
33b499ff2f
#842 able to use access token replace basic auth
10 years ago
Unknwon
6305921179
token recent activity
10 years ago
Unknwon
4927fe0600
new access token UI
10 years ago
Unknwon
7d44e9e18f
work on #1493
10 years ago
Unknwon
cdd2a75239
routers/repo/http.go: allow HTTP push/pull by token for #845
10 years ago
Christopher Brickley
d0827e5d5e
allow http push by token - #842
11 years ago
Unknwon
8c9338a537
add personal access token panel #12
11 years ago