datamweb / shield-oauth

OAuth for CodeIgniter Shield
https://www.shield-oauth.codeigniter4.ir/
MIT License
56 stars 16 forks source link

Bug: [Register] Undefined property: stdClass::$family_name #113

Closed warcooft closed 2 months ago

warcooft commented 2 months ago

PHP Version

8.3

CodeIgniter4 Version

4.5.1

Shield Version

1.0.2

Shield OAuth Version?

dev-develop

Which operating systems have you tested for this bug?

macOS

Which server did you use?

apache

Database

PostgreSQL 15.4

Did you add customize OAuth?

No

What happened?

This bug is similar to the previous bug. See #109
When a new user registers using oauth, property $family_name does not exist because some accounts do not have a last name, especially old accounts or users who have one word names.

Screenshot 2024-05-17 at 14 22 55

I will submit a PR for this bug soon.

Steps to Reproduce

click oauth button

Expected Output

new user login after registered using oauth

Anything else?

No response