Mercurial Hosting > chat
view src/delete_user.js.luan @ 6:e22a1ba4b2ed
misc
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 29 Oct 2024 16:47:11 -0600 |
parents | |
children | 7230c821c368 |
line wrap: on
line source
local Luan = require "luan:Luan.luan" local error = Luan.error local Io = require "luan:Io.luan" local Http = require "luan:http/Http.luan" local User = require "site:/lib/User.luan" local current_user = User.current or error() return function() local user = current_user() if user ~= nil then user.delete() end Io.stdout = Http.response.text_writer() %> logout(); <% end