This commit is contained in:
xdrm-brackets 2016-11-08 10:38:23 +01:00
parent 569d594c82
commit bec9fb957a
1 changed files with 4 additions and 1 deletions

View File

@ -59,7 +59,10 @@
/* (3) Gestion de AUTH en fonction du token /* (3) Gestion de AUTH en fonction du token
---------------------------------------------------------*/ ---------------------------------------------------------*/
$GLOBALS['TOKEN'] = preg_match('/^[a-f0-9]{64}$/', $GLOBALS['TOKEN'], $match) ? $match[0] : null; if( preg_match('/^[a-f0-9]{64}$/', $GLOBALS['TOKEN'], $match) )
$GLOBALS['TOKEN'] = $match[0];
else
$GLOBALS['TOKEN'] = null;
/* (4) On vérifie l'authentification par BDD /* (4) On vérifie l'authentification par BDD
---------------------------------------------------------*/ ---------------------------------------------------------*/