Fix all the $this calls
This commit is contained in:
parent
aef194c55d
commit
872ebbd129
@ -100,7 +100,7 @@ class UserHooks {
|
||||
}
|
||||
|
||||
private function deleteEmailAccount($user_data) {
|
||||
$ch = curl_init($this.config->getMailUAPI . 'user/' . urlencode($user_data->email));
|
||||
$ch = curl_init($this->config->getMailUAPI() . 'user/' . urlencode($user_data->email));
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: ' . $this->config->getMailUKeys()));
|
||||
|
||||
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
|
||||
@ -125,7 +125,7 @@ class UserHooks {
|
||||
}
|
||||
|
||||
private function updateEmailPassword($user_data) {
|
||||
$ch = curl_init($this.config->getMailUAPI . 'user/' . urlencode($user_data->email));
|
||||
$ch = curl_init($this->config->getMailUAPI() . 'user/' . urlencode($user_data->email));
|
||||
$payload = json_encode(array("raw_password" => $user_data['password']));
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload );
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json',
|
||||
|
Loading…
Reference in New Issue
Block a user