Proyectos de Subversion LeadersLinked - Services

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
345 www 2
declare(strict_types = 1);
1 efrain 3
namespace LeadersLinked\Form\Users;
4
 
5
use Laminas\Form\Form;
6
 
7
class ChangePasswordForm extends Form
8
{
9
 
345 www 10
    public function __construct()
1 efrain 11
    {
12
        parent::__construct();
13
        $this->setInputFilter(new ChangePasswordFilter());
14
 
345 www 15
        $this->add([
16
            'name' => 'password',
17
            'type' => \Laminas\Form\Element\Password::class,
18
            'attributes' => [
19
                'maxlength' => 25,
20
                'id' => 'password'
21
            ]
22
        ]);
23
        $this->add([
24
            'name' => 'confirmation',
25
            'type' => \Laminas\Form\Element\Password::class,
26
            'attributes' => [
27
                'maxlength' => 25,
28
                'id' => 'confirmation'
29
            ]
30
        ]);
1 efrain 31
    }
32
}