mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: Remove incorrect json_decode in setupUser
The client body is already decoded as array, not JSON string. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -58,8 +58,7 @@ trait UsersBase
|
||||
}
|
||||
|
||||
if ($user['headers']['status-code'] === 201) {
|
||||
$body = json_decode($user['body'], true);
|
||||
static::$cachedUser[$projectId] = ['userId' => $body['$id']];
|
||||
static::$cachedUser[$projectId] = ['userId' => $user['body']['$id']];
|
||||
}
|
||||
|
||||
return static::$cachedUser[$projectId];
|
||||
|
||||
Reference in New Issue
Block a user