36 Commits (d71f510c6240502ba37955d8e89b987cad1edb65)

Author SHA1 Message Date
Kim "BKC" Carlbäcker e5b8b4b5ec Cleanup models.User.HashPassword (#3334) 7 years ago
Morgan Bazalgette 674cfb7cac Change EncodePasswd to HashPassword (#3329)
* Change EncodePasswd to HashPassword

* Create test+benchmark for HashPassword
7 years ago
Vlad Temian 469ab99e9a 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 f26f4a7e01 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 fd8e8a421a 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 d1b5498cc0 Use handlers for API authorization (#723) 8 years ago
Ethan Koenig 74bbec3bf9 Fix permission bugs in team API (#647) 8 years ago
Ethan Koenig f686a32eac API endpoints for organization teams (#370) 8 years ago
Denis Denisov 380e32e129 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 3917ed45de golint fixed for routers (#208) 8 years ago
Sandro Santilli a1c5f02444 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 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
Sandro Santilli aadd7dcdc3 And others 8 years ago
Sandro Santilli 60c82a8780 More... 8 years ago
Thomas Boerger 4c6c16f358
Replaced go-gogs-client with go-sdk imports 8 years ago
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs (#37) 8 years ago
Unknwon 99c2ae7b35 #3515 use alert instead 500 for duplicated login source name 8 years ago
Unknwon dccb0c15b9 Replace convert.To with APIFormat calls 8 years ago
Robin Lambertz 5a9709fa9d Add MaxRepoCreation to EditUser API (#2781) 8 years ago
Richard Mahn 0402c803c6 Added Full Name to CreateUser api call (#3333) 8 years ago
Unknwon 1f2e173a74 Refactor User.Id to User.ID 8 years ago
Unknwon f1b8d52eb3 #2854 fix no mail notification when issue is closed/reopened 8 years ago
Unknwon d27ca649c7 api/admin: add/remove organization team repository 8 years ago
Unknwon b1d41cfa60 #1692 add admin APIs to add/remove a user from teams 8 years ago
Unknwon 5e11341232 Fix status code 8 years ago
Unknwon 90e93b1f3a Change list teams API to non-admin specific 8 years ago
Unknwon e6f927f61a #1692 api: admin list and create team under organization 8 years ago
Unknwon 9bd9ad4205 #1692 add CRUD issue APIs
- Fix go-gogs-client#10
- Related to #809
8 years ago
Unknwon dd6faf7f9b Convert all API handers to use *context.APIContext 8 years ago
Unknwon 2bf8494332 #13 finish user and repository search
Both are possible on explore and admin panel
8 years ago
Unknwon 514382e2eb Rename module: middleware -> context 8 years ago
Unknwon 1c9dd11ba7 #1692 API: admin create repo 9 years ago
Unknwon 9cd16c5b12 #1692 add organization APIs 9 years ago
Unknwon 3d5d61778a #1938 #1374 disable password change for non-local users 9 years ago
Unknwon ca8ce793d1 #2063 Ability to delete repo from admin panel 9 years ago
Unknwon 978dc00305 APIs: admin users 9 years ago