From ef6928547b82f86afbb6f05da37490995be41087 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 6 Oct 2020 18:28:21 +0200 Subject: [PATCH] Bug connexion dans captcha --- core/module/user/user.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/module/user/user.php b/core/module/user/user.php index f26a61e9..279c23ba 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -336,8 +336,9 @@ class user extends common { if($this->isPost()) { // Check la captcha if( + $this->getData(['config','connect','captcha']) //$this->getInput('userLoginCaptcha', helper::FILTER_INT) !== $this->getInput('userLoginCaptchaFirstNumber', helper::FILTER_INT) + $this->getInput('userLoginCaptchaSecondNumber', helper::FILTER_INT)) - password_verify($this->getInput('userLoginCaptcha', helper::FILTER_INT), $this->getInput('userLoginCaptchaResult') ) === false ) + AND password_verify($this->getInput('userLoginCaptcha', helper::FILTER_INT), $this->getInput('userLoginCaptchaResult') ) === false ) { self::$inputNotices['userLoginCaptcha'] = 'Incorrect'; }