From 7a44233fb9439e7cc4d1503b14f02a1d9f6da7b9 Mon Sep 17 00:00:00 2001 From: ethiraj Date: Thu, 27 Oct 2016 08:33:35 +0530 Subject: [PATCH] set minimum password length after user registration update --- app/controllers/devise/registrations_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/devise/registrations_controller.rb b/app/controllers/devise/registrations_controller.rb index 4a75e543..31ba0887 100644 --- a/app/controllers/devise/registrations_controller.rb +++ b/app/controllers/devise/registrations_controller.rb @@ -57,6 +57,7 @@ class Devise::RegistrationsController < DeviseController respond_with resource, location: after_update_path_for(resource) else clean_up_passwords resource + set_minimum_password_length respond_with resource end end