diff --git a/config/modules.json b/config/modules.json index 60d84c9..eee84b0 100755 --- a/config/modules.json +++ b/config/modules.json @@ -50,7 +50,7 @@ "description": "Creation d'un token de nom et de duree donnee", "parameters": { "name": { "description": "Nom attribue au token", "type": "varchar(50)" }, - "duration": { "description": "Duree du token en nombre de jours", "type": "int" } + "duration": { "description": "Duree du token en nombre de jours", "type": "numeric" } } } } diff --git a/manager/module/call_log.php b/manager/module/call_log.php index 5cd6ac8..65173ee 100644 --- a/manager/module/call_log.php +++ b/manager/module/call_log.php @@ -19,13 +19,6 @@ * */ public static function unserialize($content=null){ - /* [1] Normalisation + verification des donnees - =========================================================*/ - // Si les parametres ne sont pas corrects, on retourne une erreur - if( $content === null ) - return array('ModuleError' => ManagerError::ParamError); - - /* [2] On recupere le xml =========================================================*/ $xml = simplexml_load_string($content); diff --git a/manager/module/token.php b/manager/module/token.php index 437bd9b..2141293 100755 --- a/manager/module/token.php +++ b/manager/module/token.php @@ -20,11 +20,6 @@ * */ public static function remove($id_token){ - /* [0] Verification des INPUT - =========================================================*/ - if( !Database::check('id', $id_token) ) return array('ModuleError' => ManagerError::ParamError); - - /* [1] Suppression du token =========================================================*/ $remove = new Repo('token/remove', array($id_token)); diff --git a/manager/module/users.php b/manager/module/users.php index 147a36b..28258cc 100755 --- a/manager/module/users.php +++ b/manager/module/users.php @@ -18,15 +18,6 @@ * */ public static function login($login, $password){ - /* [0] Gestion des INPUT - =========================================================*/ - $checker = Database::check('varchar(255)', $login); - $checker = $checker && Database::check('text', $password); - - // Si les parametres sont incorrects, on retourne une erreur - if( !$checker ) return array('ModuleError' => ManagerError::ParamError); - - /* [1] On verifie les logins =========================================================*/ $check = new Repo('users/login', array($login, $password));