Adds host pool id and user lifetime to lua getUsers

This commit is contained in:
Simone Mainardi 2017-01-19 15:39:24 +01:00
parent 6667a3a22c
commit 0be022e37e
2 changed files with 11 additions and 7 deletions

View file

@ -80,10 +80,11 @@ for _key, _value in pairsByKeys(vals, funct) do
if(num > 0) then
print ",\n"
end
print ("{")
print (" \"column_username\" : \"" .. key .. "\", ")
print (" \"column_full_name\" : \"" .. value["full_name"] .. "\", ")
print (" \"column_group\" : \"" .. value["group"] .. "\", ")
print (" \"column_edit\" : \"<a href='#password_dialog' data-toggle='modal' onclick='return(reset_pwd_dialog(\\\"".. key.."\\\"));'><span class='label label-info'>Manage</span></a> ")