diff --git a/lib/server/auth.ts b/lib/server/auth.ts index dcef9ab..375af6a 100644 --- a/lib/server/auth.ts +++ b/lib/server/auth.ts @@ -178,7 +178,10 @@ async function readManagedAccounts(): Promise { async function saveManagedAccounts(accounts: StoredAccountRecord[]): Promise { const redis = getRedisClient(); if (!redis) { - throw new Error('Managed auth storage unavailable'); + throw new ManagedAuthStorageError( + 'write', + new Error('Managed auth storage unavailable') + ); } try { @@ -375,18 +378,6 @@ async function authenticateManagedLogin(username: string, password: string): Pro password, getEffectiveAdminPassword() ); - if (usesBootstrapAdminCredential) { - return { - accountId: 'managed-admin-env', - profileId: 'managed-admin-env', - username: 'admin', - name: '超级管理员', - role: 'super_admin', - customPermissions: [], - mode: 'managed', - iat: Date.now(), - }; - } const accounts = await ensureManagedAccountsBootstrapped(); let account = accounts.find((item) => item.username === normalizedUsername); diff --git a/package-lock.json b/package-lock.json index f4dabde..7204543 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "kvideo", - "version": "4.9.13", + "version": "4.9.14", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "kvideo", - "version": "4.9.13", + "version": "4.9.14", "dependencies": { "@dnd-kit/core": "^6.3.1", "@dnd-kit/sortable": "^10.0.0", @@ -3300,6 +3300,9 @@ "cpu": [ "arm64" ], + "libc": [ + "glibc" + ], "license": "MIT", "optional": true, "os": [ @@ -3333,7 +3336,7 @@ "arm64" ], "libc": [ - "glibc" + "musl" ], "license": "MIT", "optional": true, @@ -3351,9 +3354,6 @@ "cpu": [ "arm64" ], - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ diff --git a/package.json b/package.json index e20f61e..5e6728f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kvideo", - "version": "4.9.13", + "version": "4.9.14", "private": true, "scripts": { "dev": "node scripts/next-with-lan-access.mjs dev",