Fix: Send password from user card broken
This commit is contained in:
parent
cc70849680
commit
31dcc93ae8
@ -298,7 +298,7 @@ if ($_POST["action"] == 'update' && ! $_POST["cancel"] && $caneditfield)
|
||||
|
||||
// Action modif mot de passe
|
||||
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->fetch();
|
||||
@ -312,7 +312,7 @@ if ((($_POST["action"] == 'confirm_password' && $_POST["confirm"] == 'yes')
|
||||
else
|
||||
{
|
||||
// Succes
|
||||
if ($_GET["action"] == 'confirm_passwordsend')
|
||||
if ($_POST["action"] == 'confirm_passwordsend')
|
||||
{
|
||||
if ($edituser->send_password($user,$newpassword) > 0)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user