<% local view, viewlibrary, page_info, session = ... %> <% require("viewfunctions") %> <% displaycommandresults({"deleteauth"}, session) %> <% displaycommandresults({"addauth"}, session, true) %>

Authorized Keys for <%= view.value.user.value %>

<% for i,auth in ipairs(view.value.auth.value) do %> <% end %>
Action ID Key
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deleteauth?user="..view.value.user.value.."&auth="..auth.id, label="Delete "} %> <%= auth.id %> <% if #auth.key>32 then io.write(string.sub(auth.key,0,16) .. " ... " .. string.sub(auth.key, -16)) else io.write(auth.key) end %>
<% viewlibrary.dispatch_component("addauth", {user=view.value.user.value}) %>