From c851718782ec8c26d8fd32372ec50a9f7e9efd23 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 2 Dec 2026 10:39:57 -0700 Subject: Revert "names: /migrate-grant only hands over a name whose coinos.io account has migrated." The legacy `migrated` flag is set on nearly every coinos.io account (295 of a 299-account sample), so the check stopped almost nothing and only made grants depend on a second call to coinos.io. The hole itself is closed in coinos-ui (374afce1: the name comes from the session, not the form). A real second check would have the grant carry the old account's session for the registrar to verify against coinos.io/api/me. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VMan6WoqaQDYdpWkatPCar --- names/server.js | 3 --- 1 file changed, 3 deletions(-) (limited to 'names/server.js') diff --git a/names/server.js b/names/server.js index a8f7464..0a8a9f1 100644 --- a/names/server.js +++ b/names/server.js @@ -38,7 +38,6 @@ import { registrationIdentity } from './ownership.js'; import { openStore } from './store.js'; import { withdrawService } from './withdraw.js'; import { accountOf, accountBlockers, forgetAccount } from './forget.js'; -import { migrateGrantRefusal } from './migrate-check.js'; const CFG = JSON.parse(readFileSync(process.env.NAMES_CONFIG || join(import.meta.dir, 'config.json'), 'utf8')); @@ -2105,8 +2104,6 @@ Bun.serve({ try { b = await req.json(); } catch { return json({ error: 'bad body' }, 400); } const name = String(b.name || '').toLowerCase(); if (!NAME_RE.test(name)) return json({ error: 'bad name' }, 400); - const refused = await migrateGrantRefusal(name); - if (refused) return json({ error: refused[1] }, refused[0]); let pubkey = /^[0-9a-f]{64}$/.test(String(b.pubkey || '')) ? b.pubkey : null; let manager = null; if (!pubkey && b.to) { -- cgit v1.2.3