Skip to content

Commit

Permalink
Return object response data after login (Fab1en#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonko committed Aug 11, 2019
1 parent 340f4be commit e98843d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RocketChatUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e98843d

Please sign in to comment.