Verified Commit e2273280 authored by David Beniamine's avatar David Beniamine
Browse files

Fix bad payload

parent bade4c57
......@@ -39,7 +39,7 @@ class institution extends moodlefetcher
public function createUser($user) {
try {
$this->fetch("PUT", "/v1/user/create", ['data' => $user]);
$this->fetch("PUT", "/v1/user/create", (array)$user);
} catch (\Exception $e) {
$error = $this->fetcher->getLastError();
return (isset($error->code) ? (int) $error->code : 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment