Files
huly-platform/server
SaiVaraprasad MedapatiandGitHub 577f0aa8a2 fix(account): handle single-word names in OIDC and GitHub auth providers (#10631)
When a user's name has no spaces (common for CJK names like "西门吹雪"),
name.split(' ') returns a single-element array so the last name
destructures as undefined, causing a PostgreSQL NOT NULL constraint
violation on the last_name column.

- openid: prefer standard OIDC given_name/family_name claims when
  available, fall back to splitting name with safe slice(1).join()
- github: same split fix using displayName ?? username
- loginOrSignUpWithProvider: add ?? '' defensive fallback at insertOne
  to guard against any undefined last name reaching the DB

Fixes #10628

Signed-off-by: SaiVaraprasad Medapati <varaprasadreddy9676@gmail.com>
2026-03-18 14:37:14 +07:00
..
2026-03-02 08:53:01 +07:00
2026-03-02 08:53:01 +07:00
2026-03-02 08:53:01 +07:00
2026-03-02 08:53:01 +07:00
2026-03-02 08:53:01 +07:00
2026-03-02 08:53:01 +07:00
2026-03-02 08:53:01 +07:00
2026-03-02 08:53:01 +07:00
2026-03-02 08:53:01 +07:00