Fix another internal api error
This commit is contained in:
parent
34d45c6338
commit
cc618ecfda
@ -125,7 +125,7 @@ class UserHooks {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function updateEmailPassword($user, $password) {
|
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));
|
$payload = json_encode(array("raw_password" => $password));
|
||||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload );
|
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload );
|
||||||
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json',
|
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json',
|
||||||
|
Loading…
Reference in New Issue
Block a user