summaryrefslogtreecommitdiff
path: root/app/controllers/admin
diff options
context:
space:
mode:
authorGabriel Mazetto <gabriel@gitlab.com>2016-04-30 05:34:31 -0300
committerGabriel Mazetto <gabriel@gitlab.com>2016-05-02 10:32:01 -0300
commit00ced598ea65f1b957c43576bc1564ed3f67d749 (patch)
tree99b2dfc8972df739730da450849264e43f51d322 /app/controllers/admin
parent0cd5edf35cfaca74344dd389aadd65f0f179d395 (diff)
downloadgitlab-ce-feature/backport-safewebhooks.tar.gz
Added UI to define secret_token for webhook and systemhookfeature/backport-safewebhooks
Codestyle changes to easy EE merge
Diffstat (limited to 'app/controllers/admin')
-rw-r--r--app/controllers/admin/hooks_controller.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/controllers/admin/hooks_controller.rb b/app/controllers/admin/hooks_controller.rb
index 93c4894ea0f..4e85b6b4cf2 100644
--- a/app/controllers/admin/hooks_controller.rb
+++ b/app/controllers/admin/hooks_controller.rb
@@ -39,6 +39,12 @@ class Admin::HooksController < Admin::ApplicationController
end
def hook_params
- params.require(:hook).permit(:url, :enable_ssl_verification, :push_events, :tag_push_events)
+ params.require(:hook).permit(
+ :enable_ssl_verification,
+ :push_events,
+ :tag_push_events,
+ :token,
+ :url
+ )
end
end