diff --git a/core/layout/common.css b/core/layout/common.css index aa62b04e..fafe8f2f 100755 --- a/core/layout/common.css +++ b/core/layout/common.css @@ -1369,14 +1369,6 @@ th.col12 { padding-right: 10px; } -#userLoginCaptcha, -#formcaptcha, -#blogArticlecaptcha { - width: 20%; - text-align: center; - margin: auto; -} - /* * Couleur des icônes + et - */ diff --git a/core/module/user/user.php b/core/module/user/user.php index 89460fbe..f26a61e9 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -339,7 +339,7 @@ class user extends common { //$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 ) { - self::$inputNotices['blogArticlecaptcha'] = 'Incorrect'; + self::$inputNotices['userLoginCaptcha'] = 'Incorrect'; } // Lire Id du compte diff --git a/module/blog/blog.php b/module/blog/blog.php index 97483229..0b37766d 100644 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -343,9 +343,9 @@ class blog extends common { if( $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') //AND $this->getInput('blogArticlecaptcha', helper::FILTER_INT) !== $this->getInput('blogArticlecaptchaFirstNumber', helper::FILTER_INT) + $this->getInput('blogArticlecaptchaSecondNumber', helper::FILTER_INT)) - AND password_verify($this->getInput('blogArticleCapcha', helper::FILTER_INT), $this->getInput('blogArticleCapchaResult') ) === false ) + AND password_verify($this->getInput('blogArticleCaptcha', helper::FILTER_INT), $this->getInput('blogArticleCaptchaResult') ) === false ) { - self::$inputNotices['blogArticleCapcha'] = 'Incorrect'; + self::$inputNotices['blogArticleCaptcha'] = 'Incorrect'; } // Crée le commentaire $commentId = helper::increment(uniqid(), $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'comment'])); diff --git a/module/blog/view/article/article.php b/module/blog/view/article/article.php index 147583d1..3e9ef09d 100644 --- a/module/blog/view/article/article.php +++ b/module/blog/view/article/article.php @@ -77,8 +77,8 @@ ]); ?> getUser('password') !== $this->getInput('ZWII_USER_PASSWORD')): ?>