3 namespace Wallabag\CoreBundle\Form\Type
;
5 use Symfony\Component\Form\AbstractType
;
6 use Symfony\Component\Form\FormBuilderInterface
;
7 use Symfony\Component\Validator\Constraints
;
9 class ResetPasswordType
extends AbstractType
11 public function buildForm(FormBuilderInterface
$builder, array $options)
14 ->add('new_password', 'repeated', array(
16 'invalid_message' => 'The password fields must match.',
18 'first_options' => array('label' => 'New password'),
19 'second_options' => array('label' => 'Repeat new password'),
20 'constraints' => array(
21 new Constraints\
Length(array(
23 'minMessage' => 'Password should by at least 8 chars long',
25 new Constraints\
NotBlank(),
31 public function getName()
33 return 'change_passwd';