diff options
author | Thomas Citharel <tcit@tcit.fr> | 2015-04-15 16:50:20 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2015-04-15 16:50:20 +0200 |
commit | 4d6e818e406417295298e76529ef761ddd8b1385 (patch) | |
tree | ea3c9a1b264d8493cf82b555dc415dc0da5180b8 /src/Wallabag/CoreBundle/Form/Type/NewUserType.php | |
parent | 04aaa199b780d71ead5f1d2ec39e38085431336d (diff) | |
download | wallabag-4d6e818e406417295298e76529ef761ddd8b1385.tar.gz wallabag-4d6e818e406417295298e76529ef761ddd8b1385.tar.zst wallabag-4d6e818e406417295298e76529ef761ddd8b1385.zip |
changed email fields with the email type and added required parameter on some stuff
Diffstat (limited to 'src/Wallabag/CoreBundle/Form/Type/NewUserType.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Form/Type/NewUserType.php | 4 |
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 | } |