Fixes the user's password generation on registration (password used to be "" for...
authorVincent Zanotti <vincent.zanotti@polytechnique.org>
Mon, 5 May 2008 16:38:39 +0000 (18:38 +0200)
committerVincent Zanotti <vincent.zanotti@polytechnique.org>
Mon, 5 May 2008 16:38:39 +0000 (18:38 +0200)
Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
modules/register/register.inc.php

index 4253147..a8cde72 100644 (file)
@@ -230,7 +230,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);