fix: just show the login key on settings page

This commit is contained in:
M1
2026-03-17 06:33:13 +04:00
parent 2ec1915ef5
commit 0c65b5e3fa
2 changed files with 6 additions and 2 deletions
+2 -1
View File
@@ -142,8 +142,9 @@ export const dashboard = new Elysia()
const [acc] = await sql`SELECT id, email_hash, created_at FROM accounts WHERE id = ${accountId}`;
const apiKeys = await sql`SELECT id, label, created_at, last_used_at FROM api_keys WHERE account_id = ${accountId} ORDER BY created_at DESC`;
const loginKey = cookie?.pingql_key?.value ?? null;
return html("settings", { nav: "settings", account: acc, apiKeys, accountId });
return html("settings", { nav: "settings", account: acc, apiKeys, accountId, loginKey });
})
// New monitor