user() : null); $loginId = trim((string) ($authUser->username ?? '')); if ($loginId === '') { $loginId = trim((string) ($authUser->email ?? '')); } if ($loginId === '') { $loginId = 'User'; } $displayName = $loginId; $displayUserId = (int) ($authUser->id ?? 0); if ($displayUserId > 0) { $tables = config('Auth')->tables; $identitiesTable = (string) ($tables['identities'] ?? 'auth_identities'); if (function_exists('db_connect')) { $db = db_connect(); if ($db && $db->tableExists($identitiesTable)) { $identityRow = $db->table($identitiesTable) ->select('extra') ->where('user_id', $displayUserId) ->where('type', 'email_password') ->get(1) ->getRowArray(); $extraRaw = trim((string) ($identityRow['extra'] ?? '')); if ($extraRaw !== '') { $decoded = json_decode($extraRaw, true); if (is_array($decoded)) { $fullName = trim((string) ($decoded['full_name'] ?? '')); if ($fullName !== '') { $displayName = $fullName; } } } } } } ?>
  • Profile
    • Login ID:
      User ID: id ?? '')) ?>

    • My Profile

    • Sign Out