Commit 7ee50aa393edb4a09450c57b9c64b63762eee857

Authored by Geoffrey PREUD'HOMME
1 parent cb55bd36

Temp fix pour random_int indisponible sous PHP5

TODO Corriger cette abération de sécurité
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
api/utilisateur/connexion.php
... ... @@ -7,7 +7,7 @@ function random_str($length, $keyspace = '0123456789abcdefghijklmnopqrstuvwxyzAB
7 7 $str = '';
8 8 $max = mb_strlen($keyspace, '8bit') - 1;
9 9 for ($i = 0; $i < $length; ++$i) {
10   - $str .= $keyspace[random_int(0, $max)];
  10 + $str .= $keyspace[rand(0, $max)];
11 11 }
12 12 return $str;
13 13 }
... ...