From 5d1bbc31d426af3ad0abea34c98f089ca7f6aab0 Mon Sep 17 00:00:00 2001 From: FrancisTicgal Date: Thu, 16 May 2024 15:00:27 +0200 Subject: [PATCH] fix double encryption --- CHANGELOG.md | 4 ++++ front/config.form.php | 1 - setup.php | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7466a21..626ab12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # One-Time Secret GLPI Plugin CHANGELOG +## 2.1.3 - 2024-04-08 +### Bugfixes +- Fix double encryption of apikey #22315 + ## 2.1.2 - 2024-04-08 ### Bugfixes - Fix scaped characters in secret and passphrase #21465 diff --git a/front/config.form.php b/front/config.form.php index 09e0ade..bc7453e 100644 --- a/front/config.form.php +++ b/front/config.form.php @@ -42,7 +42,6 @@ $config = new PluginOnetimesecretConfig(); if (isset($_POST["update"])) { $config->check($_POST['id'], UPDATE); - $_POST["apikey"] = (new GLPIKey())->encrypt($_POST["apikey"]); $config->update($_POST); Html::back(); } diff --git a/setup.php b/setup.php index ac80c2c..e9ab8b8 100644 --- a/setup.php +++ b/setup.php @@ -32,7 +32,7 @@ use Glpi\Plugin\Hooks; -define('PLUGIN_ONETIMESECRET_VERSION', '2.1.2'); +define('PLUGIN_ONETIMESECRET_VERSION', '2.1.3'); define('PLUGIN_ONETIMESECRET_MIN_GLPI', '10.0.10'); define('PLUGIN_ONETIMESECRET_MAX_GLPI', '11.0');