aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Form/Type/NewUserType.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Form/Type/NewUserType.php')
-rw-r--r--src/Wallabag/CoreBundle/Form/Type/NewUserType.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php
index 313a9aae..b7ebe8c2 100644
--- a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php
+++ b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php
@@ -11,7 +11,7 @@ class NewUserType extends AbstractType
11 public function buildForm(FormBuilderInterface $builder, array $options) 11 public function buildForm(FormBuilderInterface $builder, array $options)
12 { 12 {
13 $builder 13 $builder
14 ->add('username', 'text') 14 ->add('username', 'text', array('required' => true))
15 ->add('password', 'password', array( 15 ->add('password', 'password', array(
16 'constraints' => array( 16 'constraints' => array(
17 new Constraints\Length(array( 17 new Constraints\Length(array(
@@ -21,7 +21,7 @@ class NewUserType extends AbstractType
21 new Constraints\NotBlank(), 21 new Constraints\NotBlank(),
22 ), 22 ),
23 )) 23 ))
24 ->add('email', 'text') 24 ->add('email', 'email')
25 ->add('save', 'submit') 25 ->add('save', 'submit')
26 ; 26 ;
27 } 27 }