From 3f2d8599a8a239ed956fe66f8847861e9a6db9eb Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Sun, 29 Jan 2023 22:53:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20EMail=20=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Web/AuthController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Web/AuthController.php b/app/Http/Controllers/Web/AuthController.php index aef82b0..6f370b0 100644 --- a/app/Http/Controllers/Web/AuthController.php +++ b/app/Http/Controllers/Web/AuthController.php @@ -126,7 +126,7 @@ public function callback(Request $request): RedirectResponse if (is_null($user)) { $name = $oauth_user->name; $email = $oauth_user->email; - $email_verified_at = $oauth_user->email_verified_at; + $email_verified_at = $oauth_user->email_verified_at ?? now(); $user = new User(); $user->name = $name;