diff options
author | Colin Okay <colin@cicadas.surf> | 2022-10-27 13:46:56 -0500 |
---|---|---|
committer | Colin Okay <colin@cicadas.surf> | 2022-10-27 13:46:56 -0500 |
commit | 7ec9075c8a20b4a8f2b1c0de9e5b86e18ad4ae8e (patch) | |
tree | 19930b67e358630a698275ff1dc506020c83d1b6 /user.lisp | |
parent | 75926d0ed50473efc106fa83231c862063d0f0c3 (diff) |
Add: auth-pages via a middleware page serving function
Diffstat (limited to 'user.lisp')
-rw-r--r-- | user.lisp | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -48,12 +48,10 @@ url))))))) (defun user-home-page (body) - (if-let (user (session-user body)) - (with-clog-create body - (div () - (p (:content (format nil "Welcome ~a" (user-name user)))) - (new-playlist-form ()) - (playlist-listing ()))) - (setf (url (location body)) "/"))) + (with-clog-create body + (div () + (p (:content (format nil "Welcome ~a" (user-name (session-user body))))) + (new-playlist-form ()) + (playlist-listing ())))) |