From 303cbfdc991f41d7255d47495e636d111c8b6a43 Mon Sep 17 00:00:00 2001
From: tracer <tracer@24unix.net>
Date: Sun, 13 Jun 2021 16:11:03 +0200
Subject: [PATCH] removed encoder, set hasher

---
 src/Form/RegistrationFormType.php | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/Form/RegistrationFormType.php b/src/Form/RegistrationFormType.php
index ac201e0..1566834 100644
--- a/src/Form/RegistrationFormType.php
+++ b/src/Form/RegistrationFormType.php
@@ -13,8 +13,15 @@ use Symfony\Component\Validator\Constraints\IsTrue;
 use Symfony\Component\Validator\Constraints\Length;
 use Symfony\Component\Validator\Constraints\NotBlank;
 
+/**
+ * Class RegistrationFormType
+ * @package App\Form
+ */
 class RegistrationFormType extends AbstractType
 {
+	/**
+	 * {@inheritdoc}
+	 */
 	public function buildForm(FormBuilderInterface $builder, array $options)
 	{
 		$builder
@@ -29,7 +36,7 @@ class RegistrationFormType extends AbstractType
 			])
 			->add('plainPassword', PasswordType::class, [
 				// 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,
 				'attr'        => ['autocomplete' => 'new-password'],
 				'constraints' => [
@@ -49,6 +56,9 @@ class RegistrationFormType extends AbstractType
 			->add('email', EmailType::class);
 	}
 	
+	/**
+	 * {@inheritdoc}
+	 */
 	public function configureOptions(OptionsResolver $resolver)
 	{
 		$resolver->setDefaults([