bundle/Controller/UserController.php
protected function createResetPasswordForm(): FormInterface
    {
        $minLength = (int) $this->getParameter('netgen.ezforms.form.type.fieldtype.ezuser.parameters.min_password_length');

        $passwordConstraints = [
            new Constraints\NotBlank(),
        ];

        if ($minLength > 0) {
            $passwordConstraints[] = new Constraints\Length(
                [
                    'min' => $minLength,
                ]
            );
        }

        $passwordOptions = [
            'type' => PasswordType::class,
            'required' => true,
            'options' => [
                'constraints' => $passwordConstraints,
            ],
        ];

        return $this->createFormBuilder(null, ['translation_domain' => 'ngsite_user'])
            ->add('password', RepeatedType::class, $passwordOptions)
            ->getForm();
    }
protected function createResetPasswordForm(): FormInterface
    {
        $minLength = (int) $this->getParameter('netgen.ezforms.form.type.fieldtype.ezuser.parameters.min_password_length');

        $passwordConstraints = [
            new Constraints\NotBlank(),
        ];

        if ($minLength > 0) {
            $passwordConstraints[] = new Constraints\Length(
                [
                    'min' => $minLength,
                ]
            );
        }

        $passwordOptions = [
            'type' => PasswordType::class,
            'required' => true,
            'options' => [
                'constraints' => $passwordConstraints,
            ],
        ];

        return $this->createFormBuilder(null, ['translation_domain' => 'ngsite_user'])
            ->add('password', RepeatedType::class, $passwordOptions)
            ->getForm();
    }
protected function createResetPasswordForm ( ) : FormInterface { $ minLength = ( int ) $ this -> getParameter ( 'netgen.ezforms.form.type.fieldtype.ezuser.parameters.min_password_length' ) ; $ passwordConstraints = [ new Constraints \ NotBlank ( ) , ] ; if ( $ minLength > 0 ) { $ passwordConstraints [ ] = new Constraints \ Length ( [ 'min' => $ minLength , ] ) ; } $ passwordOptions = [ 'type' => PasswordType :: class , 'required' => true , 'options' => [ 'constraints' => $ passwordConstraints , ] , ] ; return $ this -> createFormBuilder ( null , [ 'translation_domain' => 'ngsite_user' ] ) -> add ( 'password' , RepeatedType :: class , $ passwordOptions ) -> getForm ( ) ; }
Creates reset password form.
Creates reset password form .