From 3a7242c7016f4db64017537a86bae10409b3a27d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 4 Feb 2005 15:24:04 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20La=20fonction=20password=20n=E9cessite?= =?UTF-8?q?=20dor=E9navant=203=20param=E8tres.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/user/fiche.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/user/fiche.php b/htdocs/user/fiche.php index 70c00ee6c15..b63486b1a71 100644 --- a/htdocs/user/fiche.php +++ b/htdocs/user/fiche.php @@ -94,7 +94,7 @@ if ($_POST["action"] == 'add' && $user->admin) if ($id) { if (isset($_POST['password']) && trim($_POST['password'])) { - $edituser->password(trim($_POST['password']),$conf->password_encrypted); + $edituser->password($user,trim($_POST['password']),$conf->password_encrypted); } Header("Location: fiche.php?id=$id"); @@ -128,8 +128,8 @@ if ($_POST["action"] == 'update' && $user->admin) } if ($ret >= 0 && isset($_POST["password"]) && $_POST["password"] !='' ) { - $ret=$edituser->password($password,$conf->password_encrypted); - if ($ret > 0) { + $ret=$edituser->password($user,$password,$conf->password_encrypted); + if ($ret < 0) { $message='
'.$edituser->error.'
'; } }