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;