X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/869aa1e2035b8f5feaa4f0ca62be552a9e32c053..b95d9840fb06b88151a50aecd566cc83fe518c6c:/Form/ResetType.php diff --git a/Form/ResetType.php b/Form/ResetType.php new file mode 100644 index 0000000..3033a43 --- /dev/null +++ b/Form/ResetType.php @@ -0,0 +1,37 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Rapsys\UserBundle\Form; + +use Symfony\Component\OptionsResolver\OptionsResolver; + +/** + * {@inheritdoc} + */ +class ResetType extends RegisterType { + /** + * {@inheritdoc} + */ + public function configureOptions(OptionsResolver $resolver): void { + //Call parent configure option + parent::configureOptions($resolver); + + //Set defaults + $resolver->setDefaults(['civility' => false, 'mail' => false, 'password' => true, 'forename' => false, 'surname' => false]); + } + + /** + * {@inheritdoc} + */ + public function getName(): string { + return 'rapsys_user_reset'; + } +}