Kim "BKC" Carlbäcker
fb25c73752
Cleanup models.User.HashPassword ( #3334 )
7 years ago
Morgan Bazalgette
548da9750c
Change EncodePasswd to HashPassword ( #3329 )
* Change EncodePasswd to HashPassword
* Create test+benchmark for HashPassword
7 years ago
Vlad Temian
20952f1c5f
Delete a user's public key via admin api ( closes #3014 ) ( #3059 )
* Delete a user's public key via admin api
* Test admin ssh endpoint for creating a new ssh key
* Adapt public ssh key test to also test the delete operation
* Test that deleting a missing key will result in a 404
* Test that a normal user can't delete another user's ssh key
* Make DeletePublicKey return err
* Update swagger doc
7 years ago
Ethan Koenig
1df45ea8b0
Update swagger documentation ( #2899 )
* Update swagger documentation
Add docs for missing endpoints
Add documentation for request parameters
Make parameter naming consistent
Fix response documentation
* Restore delete comments
7 years ago
Antoine GIRARD
8b81ff17f5
Improve swagger doc ( #2274 )
* Add swagger comment for adminCreateOrg
* Add swagger comment for admin route
* add hook swagger doc
* Add tags
* Add auth
* Fix name of responses
* Edit name method
* Update vendor
* make generate-swagger
7 years ago
Ethan Koenig
901f1f170e
Use handlers for API authorization ( #723 )
8 years ago
Ethan Koenig
dc4990be0d
Fix permission bugs in team API ( #647 )
8 years ago
Ethan Koenig
24db8d7848
API endpoints for organization teams ( #370 )
8 years ago
Denis Denisov
820c295d94
Fix random string generator ( #384 )
* Remove unused custom-alphabet feature of random string generator
Fix random string generator
Random string generator should return error if it fails to read random data via crypto/rand
* Fixes variable (un)initialization mixed assign
Update test GetRandomString
8 years ago
Lunny Xiao
e134836804
golint fixed for routers ( #208 )
8 years ago
Sandro Santilli
827c85ad85
Fix import path of go-sdk ( #141 )
From code.gitea.io/go-sdk/gitea
To code.gitea.io/sdk/gitea
8 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
8 years ago
Sandro Santilli
0daccd049a
And others
8 years ago
Sandro Santilli
6909f35ba0
More...
8 years ago
Thomas Boerger
a2f2fa9326
Replaced go-gogs-client with go-sdk imports
8 years ago
Rémy Boulanouar
9712d5ee89
Change import reference to match gitea instead of gogs ( #37 )
8 years ago
Unknwon
437ad0d136
#3515 use alert instead 500 for duplicated login source name
8 years ago
Unknwon
6e37e3f3d7
Replace convert.To with APIFormat calls
8 years ago
Robin Lambertz
9acb7a034f
Add MaxRepoCreation to EditUser API ( #2781 )
9 years ago
Richard Mahn
15f2b16568
Added Full Name to CreateUser api call ( #3333 )
9 years ago
Unknwon
3b42ab0e57
Refactor User.Id to User.ID
9 years ago
Unknwon
7b4e810eb5
#2854 fix no mail notification when issue is closed/reopened
9 years ago
Unknwon
d497e31faa
api/admin: add/remove organization team repository
9 years ago
Unknwon
8328452c5a
#1692 add admin APIs to add/remove a user from teams
9 years ago
Unknwon
d2f481e85f
Fix status code
9 years ago
Unknwon
11c481a053
Change list teams API to non-admin specific
9 years ago
Unknwon
0b2c7a6284
#1692 api: admin list and create team under organization
9 years ago
Unknwon
5b25440502
#1692 add CRUD issue APIs
- Fix go-gogs-client#10
- Related to #809
9 years ago
Unknwon
da092dd05b
Convert all API handers to use *context.APIContext
9 years ago
Unknwon
2d90be9c2e
#13 finish user and repository search
Both are possible on explore and admin panel
9 years ago
Unknwon
574a4d69e8
Rename module: middleware -> context
9 years ago
Unknwon
5d084664bc
#1692 API: admin create repo
9 years ago
Unknwon
ae4bcfa2e0
#1692 add organization APIs
9 years ago
Unknwon
a68cde1d7a
#1938 #1374 disable password change for non-local users
9 years ago
Unknwon
ad998a52b9
#2063 Ability to delete repo from admin panel
9 years ago
Unknwon
12020f4d74
APIs: admin users
9 years ago