Commit f480e7f8 authored by Erase's avatar Erase
Browse files

Change token generation function

parent 412dc212
......@@ -7,7 +7,7 @@
//~ Check token
session_start();
if(empty($_SESSION['csrf_token'])){
$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
$_SESSION['csrf_token'] = uniqid(rand(), true);
}
$headers = apache_request_headers();
......
......@@ -2,7 +2,7 @@
//~ Generate token
session_start();
if(empty($_SESSION['csrf_token'])) {
$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
$_SESSION['csrf_token'] = uniqid(rand(), true);
}
?>
<!DOCTYPE html>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment