diff --git a/build/api/core/Authentification.php b/build/api/core/Authentification.php index f7c36e3..5f04126 100644 --- a/build/api/core/Authentification.php +++ b/build/api/core/Authentification.php @@ -82,8 +82,6 @@ if( is_null($GLOBALS['TOKEN']) ) return false; - echo 'a'; - /* [2] Vérification du système =========================================================*/ /* (1) Fetch cyclic-hashing-system -> check file */ @@ -91,14 +89,13 @@ if( !is_file($fn) ) return false; - echo 'b'; /* (2) Read file -> check content */ - $fc = file_get_contents($fn); + $fc = trim( file_get_contents($fn) ); if( strlen($fc) !== 64 ) return false; - echo 'c'; + echo 'XXX'; /* [3] Hash comparison =========================================================*/