Skip to content

Commit

Permalink
Update Pusher and Redis Broadcaster to call getAuthIdentifier instead…
Browse files Browse the repository at this point in the history
… of getKey per Authenticatable contract. (#18351)
  • Loading branch information
tdondich authored and taylorotwell committed Mar 15, 2017
1 parent 0752200 commit 5c6eaec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function validAuthenticationResponse($request, $result)
} else {
return $this->decodePusherResponse(
$this->pusher->presence_auth(
$request->channel_name, $request->socket_id, $request->user()->getKey(), $result)
$request->channel_name, $request->socket_id, $request->user()->getAuthIdentifier(), $result)
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function validAuthenticationResponse($request, $result)
}

return json_encode(['channel_data' => [
'user_id' => $request->user()->getKey(),
'user_id' => $request->user()->getAuthIdentifier(),
'user_info' => $result,
]]);
}
Expand Down

0 comments on commit 5c6eaec

Please sign in to comment.