mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Add session ID to scope user state
This commit is contained in:
@@ -156,13 +156,14 @@ abstract class Scope extends TestCase
|
||||
'password' => $password,
|
||||
]);
|
||||
|
||||
$session = $this->client->parseCookie((string)$session['headers']['set-cookie'])['a_session_' . $this->getProject()['$id']];
|
||||
$token = $this->client->parseCookie((string)$session['headers']['set-cookie'])['a_session_' . $this->getProject()['$id']];
|
||||
|
||||
self::$user[$this->getProject()['$id']] = [
|
||||
'$id' => $user['body']['$id'],
|
||||
'name' => $user['body']['name'],
|
||||
'email' => $user['body']['email'],
|
||||
'session' => $session,
|
||||
'session' => $token,
|
||||
'sessionId' => $session['body']['$id'],
|
||||
];
|
||||
|
||||
return self::$user[$this->getProject()['$id']];
|
||||
|
||||
Reference in New Issue
Block a user