Skip to content
This repository has been archived by the owner on Aug 28, 2018. It is now read-only.

Commit

Permalink
Merge pull request #10 from hongaar/sentry-fix
Browse files Browse the repository at this point in the history
Sentry provider fix
  • Loading branch information
dwightwatson committed Jan 1, 2015
2 parents c78aeb1 + f43a6aa commit 4aa68b8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Providers/SentryAuthenticationProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ public function loginUsingId($userId)
// Find the user using the user id
try
{
$user = Sentry::findUserById(1);
$user = Sentry::findUserById($userId);

// Log the user in
return Sentry::login($user);
Sentry::login($user);

return $user;
}
catch (UserNotFoundException $e)
{
return null;
}
}
}
}

0 comments on commit 4aa68b8

Please sign in to comment.