From f4ba548f2d1294a364b56cd5b89935a6c2f495d6 Mon Sep 17 00:00:00 2001 From: Vincent Zanotti Date: Mon, 5 May 2008 18:38:39 +0200 Subject: [PATCH] Fixes the user's password generation on registration (password used to be "" for everyone ...). Signed-off-by: Vincent Zanotti --- modules/register/register.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.1.4