Accept $token object, pass to renderTemplate()

This commit is contained in:
billz
2025-03-25 05:22:29 -07:00
parent a5907d8f7f
commit b3c6178274
13 changed files with 72 additions and 54 deletions

View File

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