Fix: Send password from user card broken

This commit is contained in:
Laurent Destailleur 2008-08-28 17:56:02 +00:00
parent cc70849680
commit 31dcc93ae8

View File

@ -298,7 +298,7 @@ if ($_POST["action"] == 'update' && ! $_POST["cancel"] && $caneditfield)
// Action modif mot de passe // Action modif mot de passe
if ((($_POST["action"] == 'confirm_password' && $_POST["confirm"] == 'yes') if ((($_POST["action"] == 'confirm_password' && $_POST["confirm"] == 'yes')
|| $_GET["action"] == 'confirm_passwordsend') && $caneditpassword) || $_POST["action"] == 'confirm_passwordsend') && $caneditpassword)
{ {
$edituser = new User($db, $_GET["id"]); $edituser = new User($db, $_GET["id"]);
$edituser->fetch(); $edituser->fetch();
@ -312,7 +312,7 @@ if ((($_POST["action"] == 'confirm_password' && $_POST["confirm"] == 'yes')
else else
{ {
// Succes // Succes
if ($_GET["action"] == 'confirm_passwordsend') if ($_POST["action"] == 'confirm_passwordsend')
{ {
if ($edituser->send_password($user,$newpassword) > 0) if ($edituser->send_password($user,$newpassword) > 0)
{ {