diff options
author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2015-04-15 17:29:28 +0200 |
---|---|---|
committer | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2015-04-15 17:29:28 +0200 |
commit | 98510a4189186c8dcc3f1bf38843d935ed3d1859 (patch) | |
tree | a5a2186fb51bd2bf999c58606f3e42510eb4200d /src/Wallabag/CoreBundle/Form/Type/NewUserType.php | |
parent | 04aaa199b780d71ead5f1d2ec39e38085431336d (diff) | |
parent | c7d3bf1671fbd2f69d58394e6478e7c532f1f6e4 (diff) | |
download | wallabag-98510a4189186c8dcc3f1bf38843d935ed3d1859.tar.gz wallabag-98510a4189186c8dcc3f1bf38843d935ed3d1859.tar.zst wallabag-98510a4189186c8dcc3f1bf38843d935ed3d1859.zip |
Merge pull request #1180 from wallabag/v2patch
Add some required
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 | } |