liquid_feedback_frontend
view app/main/api/profile_info.lua @ 1856:7d60ede7005e
Allow to hide password reset and login recover feature
| author | bsw | 
|---|---|
| date | Sat Sep 17 21:30:43 2022 +0200 (2022-09-17) | 
| parents | 32cc544d5a5b | 
| children | 
 line source
     1 slot.set_layout(nil, "application/json")
     3 local r = json.object()
     5 r.result = json.array()
     6 for i, field in ipairs(config.member_profile_fields) do
     7   table.insert(r.result, json.object{
     8     id = field.id,
     9     name = field.name,
    10     type = field.type
    11   })
    12 end
    14 slot.put_into("data", json.export(r))
    15 slot.put_into("data", "\n")
