]> source.dussan.org Git - gitea.git/commit
Backport #5250 on v1.6: Fix Issue 5249 and protect /api/v1/admin routes with CSRF...
authorzeripath <art27@cantab.net>
Sun, 4 Nov 2018 15:42:15 +0000 (15:42 +0000)
committertechknowlogick <hello@techknowlogick.com>
Sun, 4 Nov 2018 15:42:15 +0000 (10:42 -0500)
commitc0bbbdd30b8161e34d34b9aaf398fd050a16f254
tree59a762a2b41ef4e4dda54f28210684023a5db4b6
parentf95c9667707376626f810abbb2e738e766003185
Backport #5250 on v1.6: Fix Issue 5249 and protect /api/v1/admin routes with CSRF token (#5272)

* Add CSRF checking to reqToken and place CSRF in the post for deadline creation

Fixes #5226, #5249

* /api/v1/admin/users routes should have reqToken middleware
integrations/api_admin_test.go
integrations/git_test.go
modules/context/api.go
public/js/index.js
routers/api/v1/api.go