From 3f5c91a5e1dd4a0d7dd9c892e2a8f092426cbe68 Mon Sep 17 00:00:00 2001 From: Bertrand GAUTHIER <bertrand.gauthier@unicaen.fr> Date: Mon, 28 Jun 2021 11:05:28 +0200 Subject: [PATCH] =?UTF-8?q?[FIX]=20La=20validation=20du=20formulaire=20d'a?= =?UTF-8?q?uthentification=20=C3=A9tait=20zapp=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/UnicaenAuth/Controller/AuthController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UnicaenAuth/Controller/AuthController.php b/src/UnicaenAuth/Controller/AuthController.php index 30d2747..364ecc0 100644 --- a/src/UnicaenAuth/Controller/AuthController.php +++ b/src/UnicaenAuth/Controller/AuthController.php @@ -137,7 +137,7 @@ class AuthController extends AbstractActionController $form->initFromRequest($request); // si le formulaire POSTé ne possède aucun champ identifiant, on va directement à authenticateAction() - if ($request->isPost() and ! $request->getPost()->get('identity')) { + if ($request->isPost() and ! $request->getPost()->offsetExists('identity')) { return $this->redirect()->toRoute('zfcuser/authenticate', [], ['query' => $this->params()->fromQuery()], true); } -- GitLab