liquid_feedback_frontend
view app/main/registration_admin/verification_image.lua @ 1641:ab837b075cf7
Fixed mldap_get_named_number_arg to not leave any element on the Lua stack (should not have had any effect anyway but is now consistent to documentation)
| author | jbe | 
|---|---|
| date | Tue Feb 09 17:44:47 2021 +0100 (2021-02-09) | 
| parents | 35f343eec2b6 | 
| children | 
 line source
     1 local field = param.get("field", atom.number)
     2 local id = param.get_id(atom.string)
     4 if not string.match(id, "[0-9a-z]") then
     5   return
     6 end
     8 local field_load_func = config.self_registration.fields[field].load_func
    10 slot.set_layout(nil, "image/jpeg")
    12 slot.put_into("data", field_load_func(id))
