|
@@ -8,7 +8,7 @@ use App\Form\UserRegisterType;
|
|
|
use App\Service\Mail;
|
|
|
use App\Service\UserManager;
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
|
-use Symfony\Component\Form\Extension\Core\Type\SearchType;
|
|
|
+use Symfony\Component\Form\Extension\Core\Type\EmailType;
|
|
|
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
|
|
|
use Symfony\Component\HttpFoundation\Request;
|
|
|
use Symfony\Component\Routing\Annotation\Route;
|
|
@@ -159,8 +159,8 @@ class SecurityController extends AbstractController
|
|
|
public function recupMdpAction(Request $request, UserManager $userManager, Mail $mail)
|
|
|
{
|
|
|
$form = $this->createFormBuilder()
|
|
|
- ->add('email', SearchType::class)
|
|
|
- ->add('Envoyer mail', SubmitType::class)
|
|
|
+ ->add('email', EmailType::class)
|
|
|
+ ->add('envoyer-mail', SubmitType::class)
|
|
|
->getForm();
|
|
|
|
|
|
$form->handleRequest($request);
|