This commit is contained in:
Michael RICOIS 2017-02-13 09:36:35 +01:00
parent d0ab07b9ec
commit 3f0c0ee3d8

View File

@ -107,7 +107,7 @@ class Scores_Auth_Adapter_Db implements Zend_Auth_Adapter_Interface
return new Zend_Auth_Result(Zend_Auth_Result::FAILURE_IDENTITY_NOT_FOUND, $identity,
array("Identifiant ou mot de passe invalid"));
} else {
$result = $stmt->fetch(PDO::FETC_OBJ);
$result = $stmt->fetch(PDO::FETCH_OBJ);
if ($this->_password == $result->password
|| $this->_password == md5($result->login.'|'.$result->password)) {