Store the proper hash of a matomo user's password

This commit is contained in:
Kienan Stewart 2019-04-05 13:22:07 -04:00
parent 7a6d800e21
commit 5a62d13843
No known key found for this signature in database
GPG Key ID: 075A846E78FE47EA
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ class m_piwik {
if ($api_data->result === 'success') { if ($api_data->result === 'success') {
$user = $this->get_user($user_login); $user = $this->get_user($user_login);
$user_creation_date = $user->date_registered; $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; return $ret_value;
} else { } else {
$msg->raise("ERROR", "piwik", $api_data->message); $msg->raise("ERROR", "piwik", $api_data->message);