Skip to content

Commit

Permalink
fix double encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancisTicgal committed May 16, 2024
1 parent 9d4812b commit 5d1bbc3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion front/config.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 5d1bbc3

Please sign in to comment.