diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-10-01 17:33:05 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-10-02 12:48:57 +0300 |
commit | 731b860976772111ca673ba25aeadd3634adbe7d (patch) | |
tree | ffbd6d5f612b80448067ddc4d7e80cb9b6cb7fe5 /app/controllers/projects/services_controller.rb | |
parent | 2fa89a3dc6a7580969203e43808048b79f172c0c (diff) |
Hide password in the service settings form
Diffstat (limited to 'app/controllers/projects/services_controller.rb')
-rw-r--r-- | app/controllers/projects/services_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/projects/services_controller.rb b/app/controllers/projects/services_controller.rb index 3a22ed832ac..3047ee8a1ff 100644 --- a/app/controllers/projects/services_controller.rb +++ b/app/controllers/projects/services_controller.rb @@ -58,6 +58,8 @@ class Projects::ServicesController < Projects::ApplicationController end def service_params - params.require(:service).permit(ALLOWED_PARAMS) + service_params = params.require(:service).permit(ALLOWED_PARAMS) + service_params.delete("password") if service_params["password"].blank? + service_params end end |