瀏覽代碼

Disable search on password field

Fixes #59. Or at least...it's supposed to.
Chris Oliver 6 年之前
父節點
當前提交
cbd5726e34
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 = \[/,