From: Johan Cwiklinski Date: Thu, 22 Feb 2024 16:46:55 +0000 (+0100) Subject: Add message when deprecated constant is used X-Git-Tag: 1.0.3~2 X-Git-Url: https://git.agnieray.net/?a=commitdiff_plain;h=d92a9272f1e5f0dd21b32d625badc0869edacd9b;p=galette.git Add message when deprecated constant is used --- diff --git a/galette/lib/Galette/Controllers/AuthController.php b/galette/lib/Galette/Controllers/AuthController.php index e812ea186..92850a9b7 100644 --- a/galette/lib/Galette/Controllers/AuthController.php +++ b/galette/lib/Galette/Controllers/AuthController.php @@ -136,6 +136,13 @@ class AuthController extends AbstractController } if ($this->login->isLogged()) { + if (defined('NON_UTF_DBCONNECT')) { + $this->flash->addMessage( + 'warning', + 'It appears you are using NON_UTF_DBCONNECT constant, it will be in next major release.' + ); + } + if (!$checkpass->isValid($password)) { //password is no longer valid with current rules, must be changed $this->flash->addMessage(