removed encoder, set hasher

This commit is contained in:
tracer 2021-06-13 16:18:19 +02:00
parent 303cbfdc99
commit 84a29f4ae6
1 changed files with 5 additions and 1 deletions

View File

@ -10,6 +10,10 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Validator\Constraints\Length;
use Symfony\Component\Validator\Constraints\NotBlank;
/**
* Class ChangePasswordFormType
* @package App\Form
*/
class ChangePasswordFormType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options): void
@ -38,7 +42,7 @@ class ChangePasswordFormType extends AbstractType
],
'invalid_message' => 'The password fields must match.',
// 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,
])
;