dont show user creation form on spu page

This commit is contained in:
metamuffin 2024-11-13 19:43:44 +01:00
parent d190f228f5
commit 9122ec18b0
No known key found for this signature in database
GPG key ID: 718F9749DCDBD654

View file

@ -532,14 +532,16 @@ end
local function r_users(show_special)
return respond(200, "Abrechenbarkeit", function()
print(format([[
<form action="/" method="GET" id="user_creation">
<h3>{+index.form.create_user}</h3>
<label for="username">{+field.username}: </label>
<input type="text" name="create_user" id="username" />
<input type="submit" value="{+index.form.create_user.submit}" class="button amount-ntr" />
</form>
]]))
if not show_special then
print(format([[
<form action="/" method="GET" id="user_creation">
<h3>{+index.form.create_user}</h3>
<label for="username">{+field.username}: </label>
<input type="text" name="create_user" id="username" />
<input type="submit" value="{+index.form.create_user.submit}" class="button amount-ntr" />
</form>
]]))
end
print([[<div class="userlist"></div>]]) -- for printing
print([[<ul class="userlist">]])
for _, user in ipairs(get_active_users()) do