diff options
author | Simon Rettberg | 2024-10-10 15:20:34 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-10-10 15:20:34 +0200 |
commit | 8a215c492913d6d329a7b64229738d028c7489de (patch) | |
tree | 582b057745bdf8efc9a322070a6c004cd79cf0d0 /modules-available/webinterface/inc | |
parent | [webinterface] Refactor TM-Calls for https changes (diff) | |
download | slx-admin-8a215c492913d6d329a7b64229738d028c7489de.tar.gz slx-admin-8a215c492913d6d329a7b64229738d028c7489de.tar.xz slx-admin-8a215c492913d6d329a7b64229738d028c7489de.zip |
[webinterface] Add simple API to remotely supply a certificate
Diffstat (limited to 'modules-available/webinterface/inc')
-rw-r--r-- | modules-available/webinterface/inc/webinterface.inc.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules-available/webinterface/inc/webinterface.inc.php b/modules-available/webinterface/inc/webinterface.inc.php index 276110eb..20be6545 100644 --- a/modules-available/webinterface/inc/webinterface.inc.php +++ b/modules-available/webinterface/inc/webinterface.inc.php @@ -110,4 +110,17 @@ class WebInterface return $task['id'] ?? null; } + public static function getApiKey(): ?string + { + $key = Property::get(self::PROP_API_KEY, null); + if (empty($key)) + return null; + return $key; + } + + public static function setApiKey(?string $key): void + { + Property::set(self::PROP_API_KEY, empty($key) ? null : $key); + } + }
\ No newline at end of file |