Skip to content

Commit

Permalink
fix: Undefined property: stdClass::$family_name when register a new user
Browse files Browse the repository at this point in the history
  • Loading branch information
warcooft authored May 17, 2024
1 parent 5f465ee commit 7b538be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Libraries/GoogleOAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protected function setColumnsName(string $nameOfProcess, $userInfo): array
'password' => random_string('crypto', 32),
'active' => $userInfo->email_verified,
$this->config->usersColumnsName['first_name'] => $userInfo->given_name,
$this->config->usersColumnsName['last_name'] => $userInfo->family_name,
$this->config->usersColumnsName['last_name'] => $userInfo->family_name ?? null,
$this->config->usersColumnsName['avatar'] => $userInfo->picture,
];
}
Expand Down

0 comments on commit 7b538be

Please sign in to comment.