diff src/login.red.luan @ 4:8896ffd7b152

start login
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 22 Oct 2023 23:53:59 -0600
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/login.red.luan	Sun Oct 22 23:53:59 2023 -0600
@@ -0,0 +1,9 @@
+local Luan = require "luan:Luan.luan"
+local error = Luan.error
+local Http = require "luan:http/Http.luan"
+
+
+return function()
+	Http.response.set_persistent_cookie("user","whatever")
+	Http.response.send_redirect "/"
+end