改进 EMail 验证

This commit is contained in:
iVampireSP.com 2023-01-29 22:53:54 +08:00
parent b5efc16ee4
commit 3f2d8599a8
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -126,7 +126,7 @@ public function callback(Request $request): RedirectResponse
if (is_null($user)) { if (is_null($user)) {
$name = $oauth_user->name; $name = $oauth_user->name;
$email = $oauth_user->email; $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 = new User();
$user->name = $name; $user->name = $name;