Skip to content

Commit b65cf42

Browse files
laurenceitaylorotwell
authored andcommitted
fix auth (#25873)
1 parent f4551ca commit b65cf42

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Illuminate/Foundation/Testing/Concerns/InteractsWithAuthentication.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public function actingAs(UserContract $user, $driver = null)
2929
*/
3030
public function be(UserContract $user, $driver = null)
3131
{
32+
if (isset($user->wasRecentlyCreated) && $user->wasRecentlyCreated) {
33+
$user->wasRecentlyCreated = false;
34+
}
35+
3236
$this->app['auth']->guard($driver)->setUser($user);
3337

3438
$this->app['auth']->shouldUse($driver);

0 commit comments

Comments
 (0)