From 55fa553973bccece7ca5d1fd54b143dd2f3f15eb Mon Sep 17 00:00:00 2001 From: mscherer Date: Mon, 15 Apr 2024 19:30:16 +0200 Subject: [PATCH] Add wifi --- plugins/Sandbox/src/Controller/QrCodeExamplesController.php | 2 +- plugins/Sandbox/templates/QrCodeExamples/complex.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Sandbox/src/Controller/QrCodeExamplesController.php b/plugins/Sandbox/src/Controller/QrCodeExamplesController.php index 13e5d266..258e0f05 100644 --- a/plugins/Sandbox/src/Controller/QrCodeExamplesController.php +++ b/plugins/Sandbox/src/Controller/QrCodeExamplesController.php @@ -49,7 +49,7 @@ public function svg() { break; case 'wifi': - $result = $formatter->formatWifi($this->request->getData('Wifi.network'), $this->request->getData('Wifi.password'), $this->request->getData('Wifi.type')); + $result = $formatter->formatWifi($this->request->getData('Wifi.network'), $this->request->getData('Wifi.key'), $this->request->getData('Wifi.type')); break; case 'geo': diff --git a/plugins/Sandbox/templates/QrCodeExamples/complex.php b/plugins/Sandbox/templates/QrCodeExamples/complex.php index 5d682b8f..df550477 100644 --- a/plugins/Sandbox/templates/QrCodeExamples/complex.php +++ b/plugins/Sandbox/templates/QrCodeExamples/complex.php @@ -80,7 +80,7 @@ ]; echo $this->Form->control('Wifi.type', ['options' => $types]); echo $this->Form->control('Wifi.network', ['placeholder' => 'SSID']); - echo $this->Form->control('Wifi.password', ['placeholder' => 'Must not contain ; characters']); + echo $this->Form->control('Wifi.key', ['placeholder' => 'Pwd must not contain ; characters']); ?>