From e98843d9354cc58b905f08c15dd11d85ea8ca46c Mon Sep 17 00:00:00 2001 From: Nelson Ko Date: Sat, 10 Aug 2019 21:30:42 -0400 Subject: [PATCH] Return object response data after login (https://github.com/Fab1en/rocket-chat-rest-client/pull/10) --- src/RocketChatUser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RocketChatUser.php b/src/RocketChatUser.php index fd21dae..e2fbb02 100644 --- a/src/RocketChatUser.php +++ b/src/RocketChatUser.php @@ -41,7 +41,7 @@ public function login($save_auth = true) { Request::ini( $tmp ); } $this->id = $response->body->data->userId; - return true; + return $response->body->data; } else { echo( $response->body->message . "\n" ); return false;