From: Vincent Zanotti Date: Mon, 5 May 2008 16:38:39 +0000 (+0200) Subject: Fixes the user's password generation on registration (password used to be "" for... X-Git-Tag: xorg/0.9.16~13 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=de5e88580500fdb1174b8d6c5125ee98f7ccc891;p=platal.git Fixes the user's password generation on registration (password used to be "" for everyone ...). Signed-off-by: Vincent Zanotti --- diff --git a/modules/register/register.inc.php b/modules/register/register.inc.php index 4253147..a8cde72 100644 --- a/modules/register/register.inc.php +++ b/modules/register/register.inc.php @@ -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);