X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fregister%2Fregister.inc.php;h=585200a2e1ab67521a3e589ddc05d140b8e853db;hb=6dae45b393a59fd04713b9c651ff0970aeec84d7;hp=42531476ce99761d670b3b4b86345e01d2efe950;hpb=756ff73fbb0cdd01cce2eda27ba18e1cc99bd735;p=platal.git diff --git a/modules/register/register.inc.php b/modules/register/register.inc.php index 4253147..585200a 100644 --- a/modules/register/register.inc.php +++ b/modules/register/register.inc.php @@ -148,6 +148,7 @@ function check_new_user(&$sub) function create_aliases (&$sub) { + global $globals; extract ($sub); require_once "xorg.misc.inc.php"; @@ -230,7 +231,7 @@ function finish_ins($sub_state) require_once('secure_hash.inc.php'); $pass = rand_pass(); - $pass_encrypted = hash_encrypt($pass_clair); + $pass_encrypted = hash_encrypt($pass); $hash = rand_url_id(12); XDB::execute('UPDATE auth_user_md5 SET last_known_email={?} WHERE matricule = {?}', $email, $mat);