Skip to content

Commit

Permalink
Return the correct token when looking up a reg in fieldscan
Browse files Browse the repository at this point in the history
  • Loading branch information
mhagander committed Nov 28, 2023
1 parent 4ae3d69 commit 2012597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgresqleu/confreg/checkin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2012597

Please sign in to comment.