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 da30ccd9..a12fff2b 100644
--- a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php
+++ b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php
@@ -12,7 +12,7 @@ class NewUserType extends AbstractType
12 public function buildForm(FormBuilderInterface $builder, array $options) 12 public function buildForm(FormBuilderInterface $builder, array $options)
13 { 13 {
14 $builder 14 $builder
15 ->add('username', 'text') 15 ->add('username', 'text', array('required' => true))
16 ->add('password', 'password', array( 16 ->add('password', 'password', array(
17 'constraints' => array( 17 'constraints' => array(
18 new Constraints\Length(array( 18 new Constraints\Length(array(
@@ -22,7 +22,7 @@ class NewUserType extends AbstractType
22 new Constraints\NotBlank(), 22 new Constraints\NotBlank(),
23 ), 23 ),
24 )) 24 ))
25 ->add('email', 'text') 25 ->add('email', 'email')
26 ->add('save', 'submit') 26 ->add('save', 'submit')
27 ; 27 ;
28 } 28 }