diff --git a/CHANGES.md b/CHANGES.md index a856e0f4..a01b23e3 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -17,6 +17,8 @@ ## version 10.2.04 - Mise à jour : - Flatpickr 4.6.3 +- Correction : + - Connexion avec un compte inexistant, notification incorrecte. - Modifications : - Position de l'icône d'ouverture et de fermeture des blocs. - Thème administration, bouton standard couleur du texte au survol. diff --git a/core/module/user/user.php b/core/module/user/user.php index 88081f8d..d0db4623 100755 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -398,6 +398,11 @@ class user extends common { $this->getData(['config', 'maintenance']) AND $this->getData(['user', $userId, 'group']) < self::GROUP_ADMIN ) { + // Verrouillage des IP + $ipBlackList = helper::arrayCollumn($this->getData(['blacklist']), 'ip'); + if ( $this->getData(['blacklist',$userId,'connectFail']) >= $this->getData(['config', 'connect', 'attempt']) + AND in_array($this->getData(['blacklist',$userId,'ip']),$ipBlackList) ) { + // Valeurs en sortie $this->addOutput([ 'notification' => 'Seul un administrateur peut se connecter lors d\'une maintenance', 'redirect' => helper::baseUrl(),