summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vmail-editusersettings-html.lsp9
1 files changed, 4 insertions, 5 deletions
diff --git a/vmail-editusersettings-html.lsp b/vmail-editusersettings-html.lsp
index e5f630c..b573892 100644
--- a/vmail-editusersettings-html.lsp
+++ b/vmail-editusersettings-html.lsp
@@ -4,12 +4,11 @@ require("viewfunctions")
<H1>Settings for <%= html.html_escape(form.value.firstname.value).." "..html.html_escape(form.value.lastname.value) %> (<%= html.html_escape(form.value.username.value) %>)</H1>
<%
- form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action
- if page_info.action ~= "createuser" then
+ if page_info.action ~= "createuser" and form.value.username then
form.value.username.readonly = true
end
- form.value["vm-password"].type = "password"
- form.value["vm-password-confirm"].type = "password"
+ if form.value["vm-password"] then form.value["vm-password"].type = "password" end
+ if form.value["vm-password-confirm"] then form.value["vm-password-confirm"].type = "password" end
local order = {"username", "firstname", "lastname", "vm-password", "vm-password-confirm", "vm-mailto", "vm-email-all-messages", "vm-attach-file", "vm-keep-local-after-email", "vm-notify-mailto", "vm-notify-email-all-messages"}
- displayform(form, order)
+ displayform(form, order, nil, page_info)
%>