diff --git a/build/api/core/Authentification.php b/build/api/core/Authentification.php index a742376..8c98537 100644 --- a/build/api/core/Authentification.php +++ b/build/api/core/Authentification.php @@ -99,9 +99,9 @@ return false; /* (3) Compares content */ - $hashed = self::secure_hash($fc); + $hashed = self::secure_hash($GLOBALS['TOKEN']); - if( strlen($hashed) !== 64 || $GLOBALS['TOKEN'] !== $hashed ) + if( strlen($hashed) !== 64 || $fc !== $hashed ) return false; /* (4) Stores new content */