Bug connexion dans captcha

This commit is contained in:
Fred Tempez 2020-10-06 18:28:21 +02:00
parent db6e2c3a97
commit ef6928547b
1 changed files with 2 additions and 1 deletions

View File

@ -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';
}