Files
Sentri/pub/api/classes/API_portalsettings.php
2026-01-01 10:54:18 +01:00

21 lines
671 B
PHP

<?php
namespace api\classes;
use api\classes\API;
require_once 'API.php';
class API_portalsettings extends API
{
public function updatePortalSettings()
{
$query = "UPDATE vc_portal_settings SET portal_name = ?, portal_provider_name = ?, admin_auth_methods = ? WHERE portal_uuid = ?";
$stmt = $this->prepareStatement($query);
$stmt->bind_param("ssss", $this->data['portal_name'], $this->data['portal_provider_name'], $this->data['admin_auth_methods'], $this->data['portal_uuid']);
if ($this->executeStatement($stmt)) {
$this->apiOutput(200, ['success' => 'portal settings updated successfully.']);
}
}
}