This commit is contained in:
@@ -246,6 +246,13 @@ export function createCoreServer(opts: CoreServerOptions): {
|
||||
);
|
||||
}
|
||||
const authActive = authUsable;
|
||||
if (!authActive) {
|
||||
// No-auth single-user mode: per-user rows are owned by the synthetic
|
||||
// 'local' id, and several tables FK to users(id) (ssh_user_deks,
|
||||
// browser_session_profiles, …). Seed the 'local' user row so those inserts
|
||||
// succeed — without it, creating an SSH connection failed with create_failed.
|
||||
repo.ensureLocalUser();
|
||||
}
|
||||
let authenticateUpgrade: import('./auth.js').UpgradeAuthChecker | undefined;
|
||||
|
||||
if (authActive) {
|
||||
|
||||
Reference in New Issue
Block a user