Commit Graph

6 Commits (837116875efc8f27265e884499ecca69ef554014)

Author SHA1 Message Date
zeripath 837116875e Return a UserList from /api/v1/admin/users ()
zeripath 7096085f2b Fix by adding CSRF checking to api reqToken and add CSRF to the POST header for deadline ()
* Add CSRF checking to reqToken and place CSRF in the post for deadline creation

Fixes , 

* /api/v1/admin/users routes should have reqToken middleware
Bo-Yi Wu ea20adaa84
feat(repo): support search repository by topic name ()
* feat(repo): support search repository by topic name
B-OnTheGo e47df0b301 Enforce token on api routes [fixed critical security issue ] ()
zeripath d293a2b9d6 Add sudo functionality to the API ()
Vlad Temian 469ab99e9a Delete a user's public key via admin api (closes ) ()
* 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