From 5a62d138439d74bb74fbe57f6a0063823f46db49 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Fri, 5 Apr 2019 13:22:07 -0400 Subject: [PATCH] Store the proper hash of a matomo user's password --- bureau/class/m_piwik.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bureau/class/m_piwik.php b/bureau/class/m_piwik.php index cdd14417..d905699b 100644 --- a/bureau/class/m_piwik.php +++ b/bureau/class/m_piwik.php @@ -118,7 +118,7 @@ class m_piwik { if ($api_data->result === 'success') { $user = $this->get_user($user_login); $user_creation_date = $user->date_registered; - $ret_value = $db->query("INSERT INTO piwik_users (uid, passwd, login, created_date) VALUES ( ?, ?, ?, ?);", array($cuid, md5('$user_pass'), $user_login, $user_creation_date)); + $ret_value = $db->query("INSERT INTO piwik_users (uid, passwd, login, created_date) VALUES ( ?, ?, ?, ?);", array($cuid, md5($user_pass), $user_login, $user_creation_date)); return $ret_value; } else { $msg->raise("ERROR", "piwik", $api_data->message);