summaryrefslogtreecommitdiff
path: root/pages/auth.fnl
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2025-10-03 11:56:37 +0600
committerunwox <me@unwox.com>2025-10-13 23:11:01 +0600
commit3f5ade2e7a139bb4405437e8fc5546aafc7b05ef (patch)
tree77c437958d74b591f11ec207d16749cf207a51e3 /pages/auth.fnl
parentf5a70e6a446e00969adb866ef2e2d10bf33bc4a8 (diff)
WIP shop
Diffstat (limited to 'pages/auth.fnl')
-rw-r--r--pages/auth.fnl6
1 files changed, 3 insertions, 3 deletions
diff --git a/pages/auth.fnl b/pages/auth.fnl
index 3afb517..1f40cab 100644
--- a/pages/auth.fnl
+++ b/pages/auth.fnl
@@ -13,11 +13,11 @@
(set data.password nil)
[(HTML
- [:div {:class "side"}
+ [:aside {}
(templates.header "/auth")])
(HTML
[:section {:class "content"}
- [:div {:class "mb-1"} [:a {:href "/"} "⟵ Обратно на главную"]]
+ [:div {:class "back"} [:a {:href "/"} "⟵ Обратно на главную"]]
[:h2 {} "Войти"]
(forms.render-form auth-form data errors)])])
@@ -57,7 +57,7 @@
db name (os.date "%Y-%m-%d %H:%M:%S" next-week))
cookie-expires (os.date "%a, %d %b %Y %H:%M:%S GMT" next-week)]
(values 302 {:Location "/shop"
- :Set-Cookie (.. "auth= " session-id "; HttpOnly; SameSite=strict;"
+ :Set-Cookie (.. "auth=" session-id "; HttpOnly; SameSite=strict;"
"Expires=" cookie-expires
(if luna.debug? "" "; Secure"))} ""))
(values 400 {}