Fix another internal api error

This commit is contained in:
Cassowary Rusnov 2023-09-27 12:08:43 -07:00
parent 34d45c6338
commit cc618ecfda

View File

@ -125,7 +125,7 @@ class UserHooks {
}
private function updateEmailPassword($user, $password) {
$ch = curl_init($this->config->getMailUAPI() . 'user/' . urlencode($user_data->email));
$ch = curl_init($this->config->getMailUAPI() . 'user/' . urlencode($user));
$payload = json_encode(array("raw_password" => $password));
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload );
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json',