fixed raspberry authentication for getConfig and removed IP verifiing

This commit is contained in:
2024-02-19 12:51:34 +01:00
parent 36b3f1e0f8
commit 58dbd749f8
2 changed files with 4 additions and 5 deletions

View File

@@ -29,11 +29,11 @@ class RaspberryDisplayModel
return null;
}
public static function getByHostnameAndIp($hostname, $ip)
public static function getByHostname($hostname)
{
$db = FronkDB::singleton();
$res = $db->select("RaspberryDisplay", "*", "hostname = '$hostname' AND ip_address = '$ip'");
$res = $db->select("RaspberryDisplay", "*", "hostname = '$hostname'");
//fetch 2 rows
if ($db->num_rows($res)) {