X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fxnetgrp.php;h=7b46cfda072e83d73fc57de188844cb3e4327041;hb=87c297112074d1da4773359b7c9d17d5fab0ff1b;hp=fcff1ba60f29336b230b8d185093d3f390362b87;hpb=91cf1bdb0dde96ea89f4e5f707fa2801871d7578;p=platal.git diff --git a/modules/xnetgrp.php b/modules/xnetgrp.php index fcff1ba..7b46cfd 100644 --- a/modules/xnetgrp.php +++ b/modules/xnetgrp.php @@ -727,9 +727,8 @@ class XnetGrpModule extends PLModule $full_name = "$firstname $lastname"; $directory_name = strtoupper($lastname) . " " . $firstname; } - XDB::execute('INSERT INTO accounts (hruid, display_name, full_name, directory_name, - email, type) - VALUES ({?}, {?}, {?}, {?}, {?}, \'xnet\')', + XDB::execute('INSERT INTO accounts (hruid, display_name, full_name, directory_name, email, type, state) + VALUES ({?}, {?}, {?}, {?}, {?}, \'xnet\', \'disabled\')', $hruid, $display_name, $full_name, $directory_name, $email); $user = User::get($hruid); }