Skip to content

account page ignore cache #181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions webroot/panel/account.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -78,7 +78,7 @@
}
break;
case "account_deletion_request":
$hasGroups = count($USER->getGroups()) > 0;
$hasGroups = count($USER->getGroups(true)) > 0;
if ($hasGroups) {
die();
break;
Expand All @@ -99,9 +99,9 @@
<p>
<strong>Username</strong> <code><?php echo $USER->getUID(); ?></code>
<br>
<strong>Organization</strong> <code><?php echo $USER->getOrg(); ?></code>
<strong>Organization</strong> <code><?php echo $USER->getOrg(true); ?></code>
<br>
<strong>Email</strong> <code><?php echo $USER->getMail(); ?></code>
<strong>Email</strong> <code><?php echo $USER->getMail(true); ?></code>
</p>

<hr>
Expand All @@ -110,7 +110,7 @@

<?php

$isActive = count($USER->getGroups()) > 0;
$isActive = count($USER->getGroups(true)) > 0;
$isPI = $USER->isPI();

if ($isPI) {
Expand Down Expand Up @@ -156,7 +156,7 @@

<h5>SSH Keys</h5>
<?php
$sshPubKeys = $USER->getSSHKeys(); // Get ssh public key attr
$sshPubKeys = $USER->getSSHKeys(true); // Get ssh public key attr

if (count($sshPubKeys) == 0) {
echo "<p>You do not have any SSH public keys, press the button below to add one.</p>";
Expand Down Expand Up @@ -190,7 +190,7 @@
<option value="" disabled hidden>Select Login Shell...</option>

<?php
$cur_shell = $USER->getLoginShell();
$cur_shell = $USER->getLoginShell(true);
$found_selector = false;
foreach ($CONFIG["loginshell"]["shell"] as $shell) {
if ($cur_shell == $shell) {
Expand Down Expand Up @@ -229,7 +229,7 @@

<h5>Account Deletion</h5>
<?php
$hasGroups = count($USER->getGroups()) > 0;
$hasGroups = count($USER->getGroups(true)) > 0;

if ($hasGroups) {
echo "<p>You cannot request to delete your account while you are in a PI group.</p>";
Expand Down
Loading