1
0
forked from baron/baron-sso

fix: CreateUser 핸들러 내 누락된 LoginID 필드 추가 및 오타 수정

This commit is contained in:
2026-03-25 15:34:29 +09:00
parent d10f80d41d
commit 7c21e500d6

View File

@@ -258,6 +258,7 @@ func (h *UserHandler) CreateUser(c *fiber.Ctx) error {
var req struct {
Email string `json:"email"`
LoginID string `json:"loginId"`
Password string `json:"password"`
Name string `json:"name"`
Phone string `json:"phone"`
@@ -357,7 +358,7 @@ func (h *UserHandler) CreateUser(c *fiber.Ctx) error {
brokerUser := &domain.BrokerUser{
Email: email,
LoginID: extractString(attributes, "id"),
LoginID: extractTraitString(attributes, "id"),
Name: name,
PhoneNumber: normalizePhoneNumber(req.Phone),
Attributes: attributes,