From 094b3d75f80d73a08dcbdddaa32ea90052383ec3 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Wed, 20 Feb 2008 18:35:22 +0000 Subject: Password administration now works! Logon as alpine and you can edit others. All other users can only edit them selves. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@761 ab2d0c66-481e-0410-8bed-d214d4d58bed --- app/acf-util/password-status-html.lsp | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'app/acf-util/password-status-html.lsp') diff --git a/app/acf-util/password-status-html.lsp b/app/acf-util/password-status-html.lsp index 35e2027..e6d15b0 100755 --- a/app/acf-util/password-status-html.lsp +++ b/app/acf-util/password-status-html.lsp @@ -58,11 +58,18 @@ if (type(myform) == "table") then end io.write("> " .. myform.label .. "\n") io.write("\t\t
\n\t\t") - io.write("\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t") - io.write("\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t") - io.write("\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t") + io.write("\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t") + io.write("\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t") + io.write("\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t") + if (myform.value.errors) then + io.write("\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t") + end io.write("\n\t\t\t") - io.write("\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t") + io.write("\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t") io.write("\n\t\t
".. myform.value.userid.label .."" .. myform.value.userid.value .. "
".. myform.value.username.label .."" .. myform.value.username.value .. "
".. myform.value.roles.label .."" .. myform.value.roles.value .. "
".. myform.value.userid.label .. + "" .. myform.value.userid.value .. "
".. myform.value.username.label .. + "" .. myform.value.username.value .. "
".. myform.value.roles.label .. + "" .. myform.value.roles.value .. "
".. myform.value.errors.label .. + "" .. myform.value.errors.value .. "
Option[Edit this account]
Option[Edit this account]
\n") if (#myform.errtxt > 0) then io.write("\t\t

" .. string.gsub(myform.errtxt, "\n", "
") .. "

\n") end io.write("\t\t
\n") @@ -73,7 +80,7 @@ io.write("") DEBUGGING

DEBUG INFO: CFE

") io.write(html.cfe_unpack(form)) io.write("
") -- cgit v1.2.3