Log des erreurs à la connection
This commit is contained in:
parent
c5bbe9ddf2
commit
52e6a25e9e
@ -339,6 +339,7 @@ class Scores_Ws_Server
|
||||
* @var unknown_type
|
||||
*/
|
||||
public $listError = array(
|
||||
'0000' => "Erreur indeterminé",
|
||||
'0900' => "Identifiant ou mot de passe incorrect",
|
||||
'0901' => "Accès WS non authorisé pour cet utilisateur",
|
||||
'0902' => "Méthode non authorisée dans votre profil",
|
||||
@ -687,7 +688,10 @@ class Scores_Ws_Server
|
||||
try {
|
||||
$resultId = $userM->fetchAll($sql);
|
||||
} catch (Zend_Db_Exception $e) {
|
||||
|
||||
$c = Zend_Registry::get('config');
|
||||
file_put_contents($c->profil->path->data.'/log/application.log',
|
||||
date('Y-m-d H:i:s').'- AUTH : '.$e->getMessage()."\n", FILE_APPEND);
|
||||
return '0000';
|
||||
}
|
||||
/**
|
||||
* No user, deleted or disable
|
||||
|
Loading…
Reference in New Issue
Block a user