]> Raphaël G. Git Repositories - userbundle/commitdiff
Enable all fields by default
authorRaphaël Gertz <git@rapsys.eu>
Sun, 8 Aug 2021 17:43:35 +0000 (19:43 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Sun, 8 Aug 2021 17:43:35 +0000 (19:43 +0200)
Form/RecoverType.php

index 50dd68f92d7e7a221944dbfd9ff48796c3b03f28..b1785dd3eff5c48f7e6f3dfc614a67ce7da1d660 100644 (file)
@@ -41,7 +41,7 @@ class RecoverType extends AbstractType {
         */
        public function configureOptions(OptionsResolver $resolver) {
                //Set defaults
         */
        public function configureOptions(OptionsResolver $resolver) {
                //Set defaults
-               $resolver->setDefaults(['error_bubbling' => true, 'mail' => true, 'password' => false]);
+               $resolver->setDefaults(['error_bubbling' => true, 'mail' => true, 'password' => true]);
 
                //Add extra mail option
                $resolver->setAllowedTypes('mail', 'boolean');
 
                //Add extra mail option
                $resolver->setAllowedTypes('mail', 'boolean');