From 2f4c1de3509141880df019ef1a6cc65981b3f6ea Mon Sep 17 00:00:00 2001 From: winter Date: Sat, 14 Dec 2024 21:24:48 +0000 Subject: implement outbound auth? untested untested because i don't have another instance to test it against .... --- Digitigrade/Model/InstanceAuth.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Digitigrade/Model/InstanceAuth.php (limited to 'Digitigrade/Model/InstanceAuth.php') diff --git a/Digitigrade/Model/InstanceAuth.php b/Digitigrade/Model/InstanceAuth.php new file mode 100644 index 0000000..616d4c5 --- /dev/null +++ b/Digitigrade/Model/InstanceAuth.php @@ -0,0 +1,21 @@ +instanceId = $id; + } + + protected function getUpdateWhereClause($db): ?string { + if (self::findWhere('instance_id = ?', [$this->instanceId]) != null) { + return "instance_id = $this->instanceId"; + } + return null; + } +} \ No newline at end of file -- cgit v1.3