diff --git a/packages/client/src/api/auth.ts b/packages/client/src/api/auth.ts index c2ebfd8..dee1d07 100644 --- a/packages/client/src/api/auth.ts +++ b/packages/client/src/api/auth.ts @@ -2,7 +2,6 @@ import { request } from './client' export interface AuthStatus { hasPasswordLogin: boolean - username: string | null hasUsers?: boolean } diff --git a/packages/server/src/controllers/auth.ts b/packages/server/src/controllers/auth.ts index 9a0b8e6..242900b 100644 --- a/packages/server/src/controllers/auth.ts +++ b/packages/server/src/controllers/auth.ts @@ -8,7 +8,6 @@ import { countUsers, createUser, deleteUser, - findFirstUser, findUserById, findUserByUsername, listUsers, @@ -27,10 +26,8 @@ import { listProfileNamesFromDisk } from '../services/hermes/hermes-profile' * Check if username/password login is configured (public). */ export async function authStatus(ctx: Context) { - const firstUser = findFirstUser() ctx.body = { hasPasswordLogin: true, - username: firstUser?.username || DEFAULT_USERNAME, hasUsers: countUsers() > 0, } }