Explorar o código

Disable search on password field

Fixes #59. Or at least...it's supposed to.
Chris Oliver %!s(int64=6) %!d(string=hai) anos
pai
achega
cbd5726e34
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      template.rb

+ 1 - 1
template.rb

@@ -153,7 +153,7 @@ def add_administrate
 
   gsub_file "app/dashboards/user_dashboard.rb",
     /email: Field::String/,
-    "email: Field::String,\n\t\tpassword: Field::String"
+    "email: Field::String,\n\t\tField::String.with_options(searchable: false)"
 
   gsub_file "app/dashboards/user_dashboard.rb",
     /FORM_ATTRIBUTES = \[/,