liquid_feedback_frontend
annotate app/main/registration_admin/verification_image.lua @ 1823:a3ca8d5c8c79
Do not offer to save the member itself as a contact
| author | bsw | 
|---|---|
| date | Thu Feb 03 11:34:28 2022 +0100 (2022-02-03) | 
| parents | 35f343eec2b6 | 
| children | 
| rev | line source | 
|---|---|
| bsw@1339 | 1 local field = param.get("field", atom.number) | 
| bsw@1340 | 2 local id = param.get_id(atom.string) | 
| bsw@1339 | 3 | 
| bsw@1339 | 4 if not string.match(id, "[0-9a-z]") then | 
| bsw@1339 | 5 return | 
| bsw@1339 | 6 end | 
| bsw@1339 | 7 | 
| bsw@1341 | 8 local field_load_func = config.self_registration.fields[field].load_func | 
| bsw@1339 | 9 | 
| bsw@1339 | 10 slot.set_layout(nil, "image/jpeg") | 
| bsw@1339 | 11 | 
| bsw@1339 | 12 slot.put_into("data", field_load_func(id)) |