diff --git a/library/Class/Users.php b/library/Class/Users.php index ac6633f33dadecf3a83addbc0265b37aba1a89a7..3ac88c9304a4fe0ec0ed0c5e63713de08b5bf860 100644 --- a/library/Class/Users.php +++ b/library/Class/Users.php @@ -630,10 +630,10 @@ class Class_Users extends Storm_Model_Abstract { //------------------------------------------------------------------------------------------------------ // Vérification pour eviter les doublons de login //------------------------------------------------------------------------------------------------------ - public function ifLoginExist($login, $site) { + public function ifLoginExist($login) { $login = (trim($login)); - $login = $this->getLoader()->findFirstBy(['login' => $login, 'id_site' => $site]); + $login = $this->getLoader()->findFirstBy(array('login' => $login)); return ($login != null); } @@ -644,7 +644,7 @@ class Class_Users extends Storm_Model_Abstract { $this->check(mb_strlen($this->getLogin(),'UTF-8') <= 50, $this->_translate->_("Le champ 'Identifiant' doit être inférieur à 50 caractères")); if ($this->isNew()) { - $this->check($this->ifLoginExist($this->getLogin(), $this->getIdSite()) == false, + $this->check($this->ifLoginExist($this->getLogin()) == false, $this->_translate->_("L'identifiant que vous avez choisi existe déjà .")); }