From e9466f33d97bc8779e557a6a1cbecebcf82c32c0 Mon Sep 17 00:00:00 2001 From: simonLeary42 <71396965+simonLeary42@users.noreply.github.com> Date: Fri, 11 Apr 2025 14:52:32 -0400 Subject: [PATCH] account page ignore cache --- webroot/panel/account.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/webroot/panel/account.php b/webroot/panel/account.php index c45602ca..fb538c55 100644 --- a/webroot/panel/account.php +++ b/webroot/panel/account.php @@ -52,12 +52,12 @@ if (!empty($added_keys)) { $added_keys = UnitySite::removeTrailingWhitespace($added_keys); - $totalKeys = array_merge($USER->getSSHKeys(), $added_keys); + $totalKeys = array_merge($USER->getSSHKeys(true), $added_keys); $USER->setSSHKeys($totalKeys, $OPERATOR); } break; case "delKey": - $keys = $USER->getSSHKeys(); + $keys = $USER->getSSHKeys(true); unset($keys[intval($_POST["delIndex"])]); // remove key from array $keys = array_values($keys); @@ -78,7 +78,7 @@ } break; case "account_deletion_request": - $hasGroups = count($USER->getGroups()) > 0; + $hasGroups = count($USER->getGroups(true)) > 0; if ($hasGroups) { die(); break; @@ -99,9 +99,9 @@
Username getUID(); ?>
- Organization getOrg(); ?>
+ Organization getOrg(true); ?>
- Email getMail(); ?>
+ Email getMail(true); ?>
You do not have any SSH public keys, press the button below to add one.
"; @@ -190,7 +190,7 @@ getLoginShell(); + $cur_shell = $USER->getLoginShell(true); $found_selector = false; foreach ($CONFIG["loginshell"]["shell"] as $shell) { if ($cur_shell == $shell) { @@ -229,7 +229,7 @@You cannot request to delete your account while you are in a PI group.
";