fix onboarding
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
require '../session.php';
|
require '../session.php';
|
||||||
require '../config.php';
|
require '../config.php';
|
||||||
require '../include_header.php';
|
|
||||||
|
|
||||||
// Must come from email verification
|
// Must come from email verification
|
||||||
if (empty($_SESSION['onboarding_user_id'])) {
|
if (empty($_SESSION['onboarding_user_id'])) {
|
||||||
@@ -9,11 +8,13 @@
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate CSRF token if not already set
|
// Generate CSRF token before include_header.php outputs the meta tag
|
||||||
if (empty($_SESSION['csrf_token'])) {
|
if (empty($_SESSION['csrf_token'])) {
|
||||||
$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
|
$_SESSION['csrf_token'] = bin2hex(random_bytes(32));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
require '../include_header.php';
|
||||||
|
|
||||||
$user_name = htmlspecialchars($_SESSION['onboarding_name'] ?? 'there');
|
$user_name = htmlspecialchars($_SESSION['onboarding_name'] ?? 'there');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user