Commits

Luke Plant  committed ed82cd1

Sensible redirection after logout.

  • Participants
  • Parent commits 74f2d3e

Comments (0)

Files changed (2)

File src/Blog/Views.hs

 
 -- | Delete auth cookies and redirect.
 logoutView req =
-    return $ Just $ (redirectResponse adminMenuUrl) `with` [ deleteCookie "username"
-                                                           , deleteCookie "timestamp"
-                                                           ]
+    return $ Just $ (redirectResponse indexUrl) `with` [ deleteCookie "username"
+                                                       , deleteCookie "timestamp"
+                                                       ]
 
 --
 -- Admin views

File src/templates/pagestart.st

     return (!(readCookie("username") == null));
 }
 
-
 function setCommentVisible(cid, visible) {
     \$.post("/blog/admin/ajax/commentvisible/", { id: cid,
                                                   visible: (visible ? 'True' : 'False') });