diff --git a/src/Form/LoginType.php b/src/Form/LoginType.php index 364c44d..4dc8401 100644 --- a/src/Form/LoginType.php +++ b/src/Form/LoginType.php @@ -11,8 +11,8 @@ class LoginType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('_username', TextType::class, ['mapped' => false]) - ->add('_password', PasswordType::class, ['mapped' => false]) + ->add('_username', TextType::class, ['mapped' => false, 'required' => true]) + ->add('_password', PasswordType::class, ['mapped' => false, 'required' => true]) ; } diff --git a/src/Form/PasswordResetRequestType.php b/src/Form/PasswordResetRequestType.php index 042565b..6ac6843 100644 --- a/src/Form/PasswordResetRequestType.php +++ b/src/Form/PasswordResetRequestType.php @@ -10,7 +10,7 @@ class PasswordResetRequestType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { - $builder->add('email', EmailType::class); + $builder->add('email', EmailType::class, ['required' => true]); } public function configureOptions(OptionsResolver $resolver) diff --git a/src/Form/RegisterType.php b/src/Form/RegisterType.php index 51d56e2..9c8d5ac 100644 --- a/src/Form/RegisterType.php +++ b/src/Form/RegisterType.php @@ -13,10 +13,10 @@ class RegisterType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('username', TextType::class) - ->add('password', PasswordType::class) - ->add('email', EmailType::class) - ->add('inviteCode', TextType::class) + ->add('username', TextType::class, ['required' => true]) + ->add('password', PasswordType::class, ['required' => true]) + ->add('email', EmailType::class, ['required' => true]) + ->add('inviteCode', TextType::class, ['required' => true]) ; }