(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: login.ml,v 1.5 2004/10/14 15:57:15 rich Exp $
+ * $Id: login.ml,v 1.6 2005/03/31 14:24:04 rich Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
let cookie =
if permanent then
- Cookie.cookie ~name:"auth" ~value:cookie ~path:"/" ~expires ()
+ Cookie.cookie "auth" cookie ~path:"/" ~expires
else
- Cookie.cookie ~name:"auth" ~value:cookie ~path:"/" () in
+ Cookie.cookie "auth" cookie ~path:"/" in
ok ~title:"Logged in" ~buttons:[ok_button redirect] ~cookie
q ("Welcome " ^ username ^ "." ^