From db597678b74ceedb8fe26ec43f217d6a6789a68b Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Wed, 20 Dec 2023 22:47:14 +0700 Subject: [PATCH] Fixed broken captcha check on login.php (#1233) * Fixed broken captcha check on login.php * Update CHANGELOG.md --- CHANGELOG.md | 1 + login.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc15bc46f..9f5ba3563 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ - Code re-formatting [\#1225](https://github.com/torrentpier/torrentpier/pull/1225) ([kovalensky](https://github.com/kovalensky)) - Introduce limit setting for max number of files to be processed in separate index file-listing [\#1223](https://github.com/torrentpier/torrentpier/pull/1223) ([kovalensky](https://github.com/kovalensky)) - Fixed set auth cookie issue [\#1227](https://github.com/torrentpier/torrentpier/pull/1227) ([belomaxorka](https://github.com/belomaxorka)) +- Fixed broken captcha check on login.php [\#1233](https://github.com/torrentpier/torrentpier/pull/1233) ([belomaxorka](https://github.com/belomaxorka)) - New Crowdin updates [\#1203](https://github.com/torrentpier/torrentpier/pull/1203), [\#1222](https://github.com/torrentpier/torrentpier/pull/1222) ([Exileum](https://github.com/Exileum)) ## [v2.4.0-rc2](https://github.com/torrentpier/torrentpier/tree/v2.4.0-rc2) (2023-12-12) diff --git a/login.php b/login.php index f0c408326..aea8f6333 100644 --- a/login.php +++ b/login.php @@ -80,7 +80,7 @@ if (isset($_POST['login'])) { } // Captcha - if ($need_captcha && !bb_captcha('check') && !$bb_cfg['captcha']['disabled']) { + if ($need_captcha && !$bb_cfg['captcha']['disabled'] && !bb_captcha('check')) { $login_errors[] = $lang['CAPTCHA_WRONG']; }