fiw typo in schema model

This commit is contained in:
Manuel Raynaud
2013-07-03 15:05:08 +02:00
parent 89ca995f29
commit 0d1e0c6a2c
5 changed files with 7 additions and 3 deletions

View File

@@ -117,12 +117,14 @@ class CustomerCreation extends BaseForm
))
->add("password", "password", array(
"constraints" => array(
new Constraints\NotBlank(),
new Constraints\Length(array("min" => ConfigQuery::read("password.length", 4)))
),
"label" => "password"
))
->add("password_confirm", "password", array(
"constraints" => array(
new Constraints\NotBlank(),
new Constraints\Length(array("min" => ConfigQuery::read("password.length", 4))),
new Constraints\Callback(array("methods" => array(
array($this, "verifyPasswordField")