X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fcreate_user.ml;h=2767434a0986c4422db0a7a9ff17d44ab13ed545;hb=afa89a4ad39c3d707647bad47b7411cb62d46db6;hp=5f6be277719de7bd0be62d67fae443e294590aa9;hpb=6b0b6830a2e784eee99dcd1b1a3cb8b44e27c765;p=cocanwiki.git diff --git a/scripts/create_user.ml b/scripts/create_user.ml index 5f6be27..2767434 100644 --- a/scripts/create_user.ml +++ b/scripts/create_user.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: create_user.ml,v 1.3 2004/09/23 11:56:47 rich Exp $ + * $Id: create_user.ml,v 1.4 2004/10/11 14:13: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 @@ -73,17 +73,21 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ = let can_manage_contacts = q#param_true "can_manage_contacts" in let can_manage_site = q#param_true "can_manage_site" in let can_edit_global_css = q#param_true "can_edit_global_css" in + let can_import_mail = q#param_true "can_import_mail" in + let force_password_change = q#param_true "force_password_change" in (* Create the user account. *) let sth = dbh#prepare_cached "insert into users (name, password, email, hostid, can_edit, can_manage_users, can_manage_contacts, can_manage_site, - can_edit_global_css) - values (?, ?, ?, ?, ?, ?, ?, ?, ?)" in + can_edit_global_css, can_import_mail, + force_password_change) + values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)" in sth#execute [`String username; `String password; email; `Int hostid; `Bool can_edit; `Bool can_manage_users; `Bool can_manage_contacts; `Bool can_manage_site; - `Bool can_edit_global_css]; + `Bool can_edit_global_css; `Bool can_import_mail; + `Bool force_password_change]; dbh#commit ();