diff --git a/htdocs/web_portal/views/site/view_site.php b/htdocs/web_portal/views/site/view_site.php
index cf5d9649d..9106de952 100644
--- a/htdocs/web_portal/views/site/view_site.php
+++ b/htdocs/web_portal/views/site/view_site.php
@@ -608,7 +608,7 @@ class="header"
Identifier |
User |
- Last Renewed
+ Last Renewed
|
Last Used |
Write |
@@ -688,13 +688,17 @@ class="header"
/>
-
+ getId()
+ . "&"
+ . "isRenewalRequest=true"
+ ?>
diff --git a/lib/Gocdb_Services/APIAuthenticationService.php b/lib/Gocdb_Services/APIAuthenticationService.php
index 1ba4c06b2..72beef14a 100644
--- a/lib/Gocdb_Services/APIAuthenticationService.php
+++ b/lib/Gocdb_Services/APIAuthenticationService.php
@@ -274,7 +274,8 @@ private function validate($data, $identifier, $type)
if (
$type == 'OIDC Subject' &&
!preg_match(
- "/^([a-f0-9]{8}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{4}\-[a-f0-9]{12})$/",
+ "/^([a-f0-9]{8}\-[a-f0-9]{4}\-[a-f0-9]{4}" .
+ "\-[a-f0-9]{4}\-[a-f0-9]{12})$/",
$identifier
)
) {
diff --git a/lib/Gocdb_Services/Site.php b/lib/Gocdb_Services/Site.php
index e739f8908..1fd7c8611 100644
--- a/lib/Gocdb_Services/Site.php
+++ b/lib/Gocdb_Services/Site.php
@@ -1496,7 +1496,8 @@ private function validIdentifier(
if (
$type == 'OIDC Subject' &&
!preg_match(
- "/^([a-z0-9]{8}\-[a-z0-9]{4}\-[a-z0-9]{4}\-[a-z0-9]{4}\-[a-z0-9]{12})$/",
+ "/^([a-z0-9]{8}\-[a-z0-9]{4}\-[a-z0-9]{4}" .
+ "\-[a-z0-9]{4}\-[a-z0-9]{12})$/",
$identifier
)
) {
diff --git a/resources/ManageAPICredentials/ManageAPICredentialsActions.php b/resources/ManageAPICredentials/ManageAPICredentialsActions.php
index 692dd80ab..44910a74a 100644
--- a/resources/ManageAPICredentials/ManageAPICredentialsActions.php
+++ b/resources/ManageAPICredentials/ManageAPICredentialsActions.php
@@ -128,8 +128,9 @@ public function deleteCreds($creds, $deleteThreshold, $isRenewalRequest)
* @param bool $isRenewalRequest Flag indicating the presence
* or absence of the `r`
* command-line argument.
- * @return array [] An Array of credentials identifed
- * for sending warning emails.
+ * @return array [] An Array of credentials
+ * identifed for
+ * sending warning emails.
*/
public function warnUsers(
$creds,
diff --git a/resources/ManageAPICredentials/ManageUnusedAPICredentialsOptions.php b/resources/ManageAPICredentials/ManageUnusedAPICredentialsOptions.php
index 9399da9f3..a8f2dfb57 100644
--- a/resources/ManageAPICredentials/ManageUnusedAPICredentialsOptions.php
+++ b/resources/ManageAPICredentials/ManageUnusedAPICredentialsOptions.php
@@ -206,7 +206,11 @@ public function getThreshold()
*/
private function tryToObtainDatetime($given)
{
- $this->isRenewalRequest = $this->getBoolOption($given, 'renewals', 'r');
+ $this->isRenewalRequest = $this->getBoolOption(
+ $given,
+ 'renewals',
+ 'r'
+ );
if (!$this->isRenewalRequest) {
$this->isInactiveRequest = $this->getBoolOption(
@@ -216,7 +220,10 @@ private function tryToObtainDatetime($given)
);
}
- $optionProvided = ($this->isRenewalRequest || $this->isInactiveRequest);
+ $optionProvided = (
+ $this->isRenewalRequest ||
+ $this->isInactiveRequest
+ );
if (!$optionProvided) {
throw new InvalidArgumentException(
|