Clear mentor entry of the user when is expertise is empty.
[platal.git] / modules / register / register.inc.php
index 4253147..585200a 100644 (file)
@@ -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);