Mercurial Hosting > linkmystyle
comparison src/delete_user.js.luan @ 0:8f4df159f06b
start public repo
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 11 Jul 2025 20:57:49 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:8f4df159f06b |
---|---|
1 local Luan = require "luan:Luan.luan" | |
2 local error = Luan.error | |
3 local Io = require "luan:Io.luan" | |
4 local Http = require "luan:http/Http.luan" | |
5 local User = require "site:/lib/User.luan" | |
6 | |
7 | |
8 return function() | |
9 local user = User.current() | |
10 if user ~= nil then | |
11 user.delete() | |
12 end | |
13 Io.stdout = Http.response.text_writer() | |
14 %> | |
15 location = '/'; | |
16 <% | |
17 end |