Files
sam-api/public/tenant/member/tenant_select_process.php

19 lines
422 B
PHP
Raw Normal View History

2025-08-10 02:36:50 +09:00
<?php
2025-08-10 02:36:50 +09:00
include '../inc/config.php';
// POST로 받은 테넌트 ID 확인
$tenant_id = isset($_POST['tenant_id']) ? intval($_POST['tenant_id']) : 0;
if (! $tenant_id) {
2025-08-10 02:36:50 +09:00
echo "<script>alert('테넌트를 선택하세요.'); history.back();</script>";
exit;
}
// 세션에 테넌트 ID 저장
$_SESSION['tenant_id'] = $tenant_id;
// 대시보드로 이동
header('Location: /tenant/member/dashboard.php');
2025-08-10 02:36:50 +09:00
exit;