removed encoder, set hasher
This commit is contained in:
parent
303cbfdc99
commit
84a29f4ae6
|
@ -10,6 +10,10 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||||
use Symfony\Component\Validator\Constraints\Length;
|
use Symfony\Component\Validator\Constraints\Length;
|
||||||
use Symfony\Component\Validator\Constraints\NotBlank;
|
use Symfony\Component\Validator\Constraints\NotBlank;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class ChangePasswordFormType
|
||||||
|
* @package App\Form
|
||||||
|
*/
|
||||||
class ChangePasswordFormType extends AbstractType
|
class ChangePasswordFormType extends AbstractType
|
||||||
{
|
{
|
||||||
public function buildForm(FormBuilderInterface $builder, array $options): void
|
public function buildForm(FormBuilderInterface $builder, array $options): void
|
||||||
|
@ -38,7 +42,7 @@ class ChangePasswordFormType extends AbstractType
|
||||||
],
|
],
|
||||||
'invalid_message' => 'The password fields must match.',
|
'invalid_message' => 'The password fields must match.',
|
||||||
// Instead of being set onto the object directly,
|
// Instead of being set onto the object directly,
|
||||||
// this is read and encoded in the controller
|
// this is read and hashed in the controller
|
||||||
'mapped' => false,
|
'mapped' => false,
|
||||||
])
|
])
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in New Issue