Files
breadcrumb-the-shire/lib/Support/helpers/auth.php
2026-03-04 15:56:58 +01:00

12 lines
249 B
PHP

<?php
/**
* Resolve the profile target for the current session user.
*/
function accountUrl(): string
{
$user = $_SESSION['user'] ?? [];
$uuid = (string) ($user['uuid'] ?? '');
return $uuid !== '' ? lurl('profile') : lurl('login');
}