(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: login_form.ml,v 1.4 2004/09/09 12:21:22 rich Exp $
+ * $Id: login_form.ml,v 1.5 2004/10/15 12:47:18 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
template#set "redirect" redirect
);
+ let username = try q#param "username" with Not_found -> "" in
+ template#set "username" username;
+
let sth = dbh#prepare_cached "select create_account_anon from hosts
where id = ?" in
sth#execute [`Int hostid];