diff options
author | Ted Trask <ttrask01@yahoo.com> | 2016-01-24 22:24:30 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2016-01-24 22:24:30 +0000 |
commit | 43ac64370f5e8d53ecf874048c27d493c5bc01b4 (patch) | |
tree | a560b46ea47a32929e4cfa894309997cb35b2cfe /app/acf-util/password-status-html.lsp | |
parent | b42210d80281189875c652909b971fcb514ec8b2 (diff) | |
download | acf-core-43ac64370f5e8d53ecf874048c27d493c5bc01b4.tar.bz2 acf-core-43ac64370f5e8d53ecf874048c27d493c5bc01b4.tar.xz |
Add password.listlockevents/unlockuser/unlockip actions to acf-util
password.status now reports locked status for each user
Modified session lib to add list_events/delete_events
Changed session.record_event/count_events to take IP rather than hash
Diffstat (limited to 'app/acf-util/password-status-html.lsp')
-rw-r--r-- | app/acf-util/password-status-html.lsp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/acf-util/password-status-html.lsp b/app/acf-util/password-status-html.lsp index 551f798..8845b13 100644 --- a/app/acf-util/password-status-html.lsp +++ b/app/acf-util/password-status-html.lsp @@ -2,7 +2,7 @@ <% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> -<% htmlviewfunctions.displaycommandresults({"newuser", "edituser", "deleteuser"}, session) %> +<% htmlviewfunctions.displaycommandresults({"newuser", "edituser", "deleteuser", "unlockuser"}, session) %> <% local header_level = htmlviewfunctions.displaysectionstart(form, page_info) @@ -27,12 +27,16 @@ for i,user in ipairs(form.value) do <td style='border:none;'><b><%= html.html_escape(user.value.roles.label) %></b></td> <td style='border:none;'><%= html.html_escape(table.concat(user.value.roles.value, ", ")) %></td> </tr><tr> + <td style='border:none;'><b><%= html.html_escape(user.value.locked.label) %></b></td> + <td style='border:none;'><%= html.html_escape(tostring(user.value.locked.value)) %></td> + </tr><tr> <td style='border:none;'><b>Option</b></td> <td style='border:none;'> <% local userid = cfe({type="hidden", value=user.value.userid.value}) %> <% htmlviewfunctions.displayitem(cfe({type="link", value={userid=userid, redir=redir}, label="", option="Edit", action="edituser"}), page_info, -1) %> <% htmlviewfunctions.displayitem(cfe({type="form", value={userid=userid}, label="", option="Delete", action="deleteuser" }), page_info, -1) %> <% htmlviewfunctions.displayitem(cfe({type="link", value={userid=userid}, label="", option="View Roles", action=page_info.script.."/acf-util/roles/viewuserroles"}), page_info, -1) %> + <% if (user.value.locked.value) then htmlviewfunctions.displayitem(cfe({type="form", value={userid=userid}, label="", option="Unlock", action="unlockuser"}), page_info, -1) end %> </td> </tr> </tbody></table> |