about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-06-14 20:30:12 +0200
committerGitHub <noreply@github.com>2017-06-14 20:30:12 +0200
commit91c71471ab41bb9af673daf6dde50159d0bfde18 (patch)
treeb43cb2de67555be82be19842332c1dbba64bc3bf /app/controllers
parent98eacb223878e51e5e9900ae09bee407d5ca2648 (diff)
Fix account delete form not accepting password, update suspended (#3745)
account before removing content for quicker feedback to end-users
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/settings/deletes_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/settings/deletes_controller.rb b/app/controllers/settings/deletes_controller.rb
index 55c18345b..dd18b4c2f 100644
--- a/app/controllers/settings/deletes_controller.rb
+++ b/app/controllers/settings/deletes_controller.rb
@@ -22,6 +22,6 @@ class Settings::DeletesController < ApplicationController
   private
 
   def delete_params
-    params.permit(:password)
+    params.require(:form_delete_confirmation).permit(:password)
   end
 end