Skip to content

Commit

Permalink
Merge pull request laravel#979 from FatBoyXPC/fix-actingas
Browse files Browse the repository at this point in the history
[7.0] Change wasRecentlyCreated to false
  • Loading branch information
taylorotwell authored Mar 1, 2019
2 parents ea7c329 + 4277d0b commit 4a19577
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Passport.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,10 @@ public static function actingAs($user, $scopes = [], $guard = 'api')

$user->withAccessToken($token);

if (isset($user->wasRecentlyCreated) && $user->wasRecentlyCreated) {
$user->wasRecentlyCreated = false;
}

app('auth')->guard($guard)->setUser($user);

app('auth')->shouldUse($guard);
Expand Down

0 comments on commit 4a19577

Please sign in to comment.