redirect user to welcome / access level page on first visit #1

This commit is contained in:
ghost 2023-09-11 03:38:21 +03:00
parent b3f26fd215
commit 9f2841220a
8 changed files with 292 additions and 168 deletions

View file

@ -71,6 +71,14 @@ else if (!$user = $db->getUser($userId))
$response->message = _('Could not init user info');
}
// On first visit, redirect user to the welcome page with access level question
else if (is_null($user->public))
{
header(
sprintf('Location: %s/welcome.php', WEBSITE_URL)
);
}
// Request valid
else
{