]> git.agnieray.net Git - galette.git/blobdiff - galette/lib/Galette/Controllers/AuthController.php
Add message when deprecated constant is used
[galette.git] / galette / lib / Galette / Controllers / AuthController.php
index e812ea18662998d3d6713134e282657566ebb869..92850a9b72259affc7ab004e89899793c3dd9667 100644 (file)
@@ -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(