Skip to content

Commit

Permalink
fix error not displayed while enabling/disabling/locking/unlocking ac…
Browse files Browse the repository at this point in the history
…count (#187)
  • Loading branch information
David Coutadeur committed Nov 27, 2024
1 parent 7d21dcd commit ef00c3b
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions htdocs/display.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
$edit_link = "";
$checkpasswordresult= "";
$resetpasswordresult= "";
$accountunlockresult= "";
$accountlockresult= "";
$unlockaccountresult= "";
$lockaccountresult= "";
$enableaccountresult= "";
$disableaccountresult= "";
$prehookresult= "";
$posthookresult= "";
$ldapExpirationDate="";
Expand All @@ -34,12 +36,20 @@
$resetpasswordresult = $_GET["resetpasswordresult"];
}

if (isset($_GET["accountunlockresult"]) and $_GET["accountunlockresult"]) {
$accountunlockresult = $_GET["accountunlockresult"];
if (isset($_GET["unlockaccountresult"]) and $_GET["unlockaccountresult"]) {
$unlockaccountresult = $_GET["unlockaccountresult"];
}

if (isset($_GET["accountlockresult"]) and $_GET["accountlockresult"]) {
$accountlockresult = $_GET["accountlockresult"];
if (isset($_GET["lockaccountresult"]) and $_GET["lockaccountresult"]) {
$lockaccountresult = $_GET["lockaccountresult"];
}

if (isset($_GET["enableaccountresult"]) and $_GET["enableaccountresult"]) {
$enableaccountresult = $_GET["enableaccountresult"];
}

if (isset($_GET["disableaccountresult"]) and $_GET["disableaccountresult"]) {
$disableaccountresult = $_GET["disableaccountresult"];
}

if (isset($_GET["prehookresult"]) and $_GET["prehookresult"]) {
Expand Down Expand Up @@ -183,8 +193,10 @@

$smarty->assign("checkpasswordresult", $checkpasswordresult);
$smarty->assign("resetpasswordresult", $resetpasswordresult);
$smarty->assign("accountunlockresult", $accountunlockresult);
$smarty->assign("accountlockresult", $accountlockresult);
$smarty->assign("unlockaccountresult", $unlockaccountresult);
$smarty->assign("lockaccountresult", $lockaccountresult);
$smarty->assign("enableaccountresult", $enableaccountresult);
$smarty->assign("disableaccountresult", $disableaccountresult);
$smarty->assign("prehookresult", $prehookresult);
$smarty->assign("posthookresult", $posthookresult);
if ($canLockAccount == false) { $smarty->assign("use_lockaccount", $canLockAccount); }
Expand Down

0 comments on commit ef00c3b

Please sign in to comment.