Skip to content

Commit

Permalink
feat: use base64 encoded usernames/email addresses when fetching user…
Browse files Browse the repository at this point in the history
… data #2463
  • Loading branch information
prajapati-kaushik authored and joostfaassen committed Jul 1, 2019
1 parent 37127e8 commit a2dfa4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ public function getUserByUsername($username)

$dataCache = $this->cache->getItem($cacheKey);
if (!$dataCache->isHit()) {
$username = 'base64:'.base64_encode($username);
$data = $this->getData('/users/'.$username);
if (isset($data['error'])) {
throw new RuntimeException('User not found: '.$username);
Expand Down

0 comments on commit a2dfa4f

Please sign in to comment.