mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +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:
1 parent
6be719c9d4
commit
a79f33a3a1
1 file changed
+1
-2
@@ -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