Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ExampleSettingsPlugin/SystemSettings.php')
-rw-r--r--plugins/ExampleSettingsPlugin/SystemSettings.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ExampleSettingsPlugin/SystemSettings.php b/plugins/ExampleSettingsPlugin/SystemSettings.php
index 67b9fcc468..0901ace048 100644
--- a/plugins/ExampleSettingsPlugin/SystemSettings.php
+++ b/plugins/ExampleSettingsPlugin/SystemSettings.php
@@ -91,7 +91,7 @@ class SystemSettings extends \Piwik\Settings\Plugin\SystemSettings
$field->uiControl = FieldConfig::UI_CONTROL_PASSWORD;
$field->description = 'Password for the 3rd API where we fetch the value';
$field->transform = function ($value) {
- return sha1($value . 'salt');
+ return password_hash($value, PASSWORD_DEFAULT);
};
});
}