diff options
Diffstat (limited to 'pages/auth.fnl')
| -rw-r--r-- | pages/auth.fnl | 6 |
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 {} |
