瀏覽代碼

made DB password not required

Fabien Potencier 14 年之前
父節點
當前提交
8b8c79f030
共有 2 個文件被更改,包括 1 次插入2 次删除
  1. 1 1
      Form/DoctrineForm.php
  2. 0 1
      Resources/views/Step/doctrine.html.twig

+ 1 - 1
Form/DoctrineForm.php

@@ -32,6 +32,6 @@ class DoctrineForm extends Form
         $this->add(new TextField('name'));
         $this->add(new TextField('name'));
         $this->add(new TextField('host'));
         $this->add(new TextField('host'));
         $this->add(new TextField('user'));
         $this->add(new TextField('user'));
-        $this->add(new RepeatedField(new PasswordField('password'), array('first_key' => 'Password', 'second_key' => 'Again')));
+        $this->add(new RepeatedField(new PasswordField('password', array('required' => false)), array('required' => false, 'first_key' => 'Password', 'second_key' => 'Again')));
     }
     }
 }
 }

+ 0 - 1
Resources/views/Step/doctrine.html.twig

@@ -28,7 +28,6 @@
         </div>
         </div>
         {{ form_row(form.password.Again) }}
         {{ form_row(form.password.Again) }}
 
 
-
         <div class="symfony-form-footer">
         <div class="symfony-form-footer">
             <p><input type="submit" value="Next Step" class="symfony-button-grey" /></p>
             <p><input type="submit" value="Next Step" class="symfony-button-grey" /></p>
             <p>* mandatory fields</p>
             <p>* mandatory fields</p>