Code pill: six fixed cells on their own row, tap to copy, wrapping header; claim error names the length when it is not 6; board hint

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-20 07:59:52 -05:00
parent f1e1886f48
commit 5db6cdff52
4 changed files with 10 additions and 4 deletions
+1
View File
@@ -73,6 +73,7 @@ function check(t, memberId, typed) {
if (rec.memberId !== Number(memberId)) return { error: 'That mission belongs to a different account.' };
const want = codeFor(rec);
const got = String(typed || '').trim().toUpperCase();
if (got.length !== 6) return { error: 'Codes are 6 characters and you typed ' + got.length + '. Look at the site again: the code sits in six boxes, and a tap on it copies all six.' };
if (got !== want) return { error: 'That is not the code. It is on the site, and it is yours alone.' };
return { ok: true, rec };
}