We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 731a47d commit b8adf13Copy full SHA for b8adf13
src/Http/VerifiesPendingEmails.php
@@ -2,12 +2,10 @@
2
3
namespace ProtoneMedia\LaravelVerifyNewEmail\Http;
4
5
-use Illuminate\Foundation\Auth\AuthenticatesUsers;
+use Illuminate\Support\Facades\Auth;
6
7
trait VerifiesPendingEmails
8
{
9
- use AuthenticatesUsers;
10
-
11
/**
12
* Mark the user's new email address as verified.
13
*
@@ -26,7 +24,7 @@ public function verify(string $token)
26
24
})->user;
27
25
28
if (config('verify-new-email.login_after_verification')) {
29
- return $this->guard()->login($user, config('verify-new-email.login_remember'));
+ return Auth::guard()->login($user, config('verify-new-email.login_remember'));
30
}
31
32
return $this->authenticated();
0 commit comments