Security hardening: invited user onboarding flow (C1–N7)

This commit is contained in:
Thanakorn S
2026-05-26 10:18:40 +07:00
parent 0815ae3292
commit 9e200d31fe
9 changed files with 562 additions and 163 deletions
+3
View File
@@ -15,10 +15,13 @@
}
// ── Look up token ─────────────────────────────────────────────
// license='owner' guard: invited users also have verify_token set, but they
// must use invited_onboarding.php — never this flow.
$sth = $pdo1->prepare("
SELECT user_id, name, status, verify_expires_at
FROM user
WHERE verify_token = :token
AND license = 'owner'
LIMIT 1
");
$sth->execute([':token' => $token]);