summaryrefslogtreecommitdiffstats
path: root/lib/class/catalog.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class/catalog.class.php')
-rw-r--r--lib/class/catalog.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php
index 88d63674..1e2878bf 100644
--- a/lib/class/catalog.class.php
+++ b/lib/class/catalog.class.php
@@ -241,7 +241,7 @@ class Catalog extends database_object {
$rename_pattern = $data['rename_pattern'];
$sort_pattern = $data['sort_pattern'];
$remote_username = $type == 'remote' ? $data['remote_username'] : '';
- $remote_password = $type == 'remote' ? $data['remote_password'] : '';
+ $remote_password = $type == 'remote' ? hash('sha256', $data['remote_password']) : '';
$sql = 'INSERT INTO `catalog` (`name`, `path`, `catalog_type`, ' .
'`rename_pattern`, `sort_pattern`, `remote_username`, ' .