From 20125978c7b920053cc4e4e7b7d7237063781eeb Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Tue, 28 Nov 2023 13:29:15 +0100 Subject: [PATCH] Return the correct token when looking up a reg in fieldscan --- postgresqleu/confreg/checkin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresqleu/confreg/checkin.py b/postgresqleu/confreg/checkin.py index 6e390c776..0fec990e8 100644 --- a/postgresqleu/confreg/checkin.py +++ b/postgresqleu/confreg/checkin.py @@ -251,7 +251,7 @@ def _get_reg_json(r, fieldscan=False): 'company': r.company, 'tshirt': r.shirtsize and r.shirtsize.shirtsize, 'additional': [a.name for a in r.additionaloptions.all()], - 'token': r.idtoken, + 'token': r.publictoken if fieldscan else r.idtoken, } if r.conference.askphotoconsent: d['photoconsent'] = r.photoconsent and "Photos OK" or "Photos NOT OK"