Don't forget the date\!
[cocanwiki.git] / scripts / login.ml
index 1132798..a2c13df 100644 (file)
@@ -1,7 +1,7 @@
 (* 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
@@ -45,7 +45,7 @@ let run r (q : cgi) dbh hostid _ _ =
        error
          ~title:"Bad name or password"
          ~back_button:true
-         dbh hostid q "The name or password was wrong.";
+         dbh hostid q "The name or password was wrong.";
        return ()
     | [ row ] -> row
     | _ -> assert false in
@@ -79,7 +79,7 @@ let run r (q : cgi) dbh hostid _ _ =
     ) else [ ok_button ] in
 
   ok ~title:"Logged in" ~buttons ~cookie
-    dbh hostid q
+    dbh hostid q
     ("Welcome " ^ username ^ "." ^
        if force_password_change then "  Please change your password now."
        else "")