diff --git a/lib/missions.js b/lib/missions.js index f496cd5..8457b8e 100644 --- a/lib/missions.js +++ b/lib/missions.js @@ -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 }; } diff --git a/public/app.html b/public/app.html index e164722..4216591 100644 --- a/public/app.html +++ b/public/app.html @@ -46,6 +46,6 @@
- +