10 lines
269 B
Lua
10 lines
269 B
Lua
--[[
|
|
GET /admin/users/[id]
|
|
Shows the editing page for the given user
|
|
]]
|
|
|
|
local a = require("admin")
|
|
|
|
local user = sqlite("dk"):get_one("SELECT * FROM users WHERE id = :i", {i = ctx.params.id})
|
|
return a.page("edit_user.html", "editing "..user.username, {user = user})
|