Fix insertion of new users by admin/add_accounts:
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 6 Oct 2010 13:14:15 +0000 (15:14 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 6 Oct 2010 13:14:15 +0000 (15:14 +0200)
commitd9e99995adb2c0bf3551aa7ba40aa79cb8e23e6b
tree04efe194ffd5baf240af47e30d1d725d8e2f7a5c
parent93e38398135982277064700519f0dd284df1eb0d
Fix insertion of new users by admin/add_accounts:

 - use a transaction to insert all the elements (avoid half-added users)
 - insert firstname and lastname in addition to their initial values
 - fix account insertion query (missing {?} and state must be pending).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/admin.php