fix: refine error messages for signup failure and company code
This commit is contained in:
1 parent
603b9e0032
commit
13469b14fb
2 files changed
+6
-6
No files matched your search
@@ -460,7 +460,7 @@ func (h *AuthHandler) Signup(c *fiber.Ctx) error {
|
||||
} else {
|
||||
// If companyCode provided but not found, we should probably reject if we want strictness,
|
||||
// or just treat as GENERAL user. Given the risk "존재하지 않는 테넌트도 저장됨", we should reject.
|
||||
return errorJSON(c, fiber.StatusBadRequest, "Invalid company code.")
|
||||
return errorJSON(c, fiber.StatusBadRequest, "해당하는 가족사(테넌트)를 찾을 수 없습니다.")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user