Integrate portal identity and shared navigation in isolated SSO mode

This commit is contained in:
leefer
2026-09-22 10:27:19 +08:00
parent 0e2e5f02de
commit 0883858c0e
9 changed files with 173 additions and 2 deletions
+2 -1
View File
@@ -16,7 +16,8 @@ function db(): PDO
$pdo->exec('PRAGMA foreign_keys = ON');
initSchema($pdo);
seedAdmin($pdo);
if (getenv('PORTAL_SSO_ENABLED') !== '1') seedAdmin($pdo);
$pdo->exec('CREATE TABLE IF NOT EXISTS portal_identity(uid INTEGER PRIMARY KEY REFERENCES users(id), empid TEXT UNIQUE NOT NULL)');
return $pdo;
}