mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Generate longer more secure Key for logins
This commit is contained in:
@@ -66,7 +66,7 @@ if(isset($_POST['login'])){
|
||||
$_SESSION['user_id'] = $row['user_id'];
|
||||
$_SESSION['user_name'] = $row['user_name'];
|
||||
$_SESSION['user_role'] = $row['user_role'];
|
||||
$_SESSION['csrf_token'] = keygen();
|
||||
$_SESSION['csrf_token'] = bin2hex(random_bytes(78));
|
||||
|
||||
// Setup encryption session key
|
||||
if (isset($row['user_specific_encryption_ciphertext']) && $row['user_role'] > 1) {
|
||||
|
||||
Reference in New Issue
Block a user