Revert "Accept $token object, pass to renderTemplate()"

This reverts commit b3c6178274.
This commit is contained in:
billz
2025-03-25 13:23:58 -07:00
parent 48e492bf10
commit b0ba029c66
13 changed files with 54 additions and 72 deletions

View File

@@ -1,6 +1,6 @@
<?php
function DisplayAuthConfig($username, $token)
function DisplayAuthConfig($username)
{
$status = new \RaspAP\Messages\StatusMessage;
$auth = new \RaspAP\Auth\HTTPAuth;
@@ -42,8 +42,7 @@ function DisplayAuthConfig($username, $token)
echo renderTemplate(
"admin", compact(
"status",
"username",
"token"
"username"
)
);
}