(* 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.11 2006/03/28 16:24:07 rich Exp $
+ * $Id: login.ml,v 1.12 2006/12/06 09:46:57 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
error
~title:"Bad name or password"
~back_button:true
- dbh hostid q "The name or password was wrong.";
+ r dbh hostid q "The name or password was wrong.";
return ()
| [ row ] -> row
| _ -> assert false in
) else [ ok_button ] in
ok ~title:"Logged in" ~buttons ~cookie
- dbh hostid q
+ r dbh hostid q
("Welcome " ^ username ^ "." ^
if force_password_change then " Please change your password now."
else "")