Skip to content

Commit b8adf13

Browse files
committed
Update VerifiesPendingEmails.php
1 parent 731a47d commit b8adf13

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Http/VerifiesPendingEmails.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22

33
namespace ProtoneMedia\LaravelVerifyNewEmail\Http;
44

5-
use Illuminate\Foundation\Auth\AuthenticatesUsers;
5+
use Illuminate\Support\Facades\Auth;
66

77
trait VerifiesPendingEmails
88
{
9-
use AuthenticatesUsers;
10-
119
/**
1210
* Mark the user's new email address as verified.
1311
*
@@ -26,7 +24,7 @@ public function verify(string $token)
2624
})->user;
2725

2826
if (config('verify-new-email.login_after_verification')) {
29-
return $this->guard()->login($user, config('verify-new-email.login_remember'));
27+
return Auth::guard()->login($user, config('verify-new-email.login_remember'));
3028
}
3129

3230
return $this->authenticated();

0 commit comments

Comments
 (0)