From 6dbb76b736234aea6cfecf99d560ef3b7d6be0b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Fri, 12 Jun 2026 20:54:48 +0400 Subject: [PATCH] =?UTF-8?q?v2:=20fio=20=E2=80=94=20=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=BE=D0=BA=D0=B0=20(fullName),=20=D0=BD=D0=B5=20=D0=BE=D0=B1?= =?UTF-8?q?=D1=8A=D0=B5=D0=BA=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- v2/src/auth/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 73f86eb..1e28012 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ipwhitelist", - "version": "0.5.73", + "version": "0.5.74", "description": "IP WhiteList microservice for cloud provider", "main": "server.js", "scripts": { diff --git a/v2/src/auth/index.js b/v2/src/auth/index.js index 3718f05..f40f7dc 100644 --- a/v2/src/auth/index.js +++ b/v2/src/auth/index.js @@ -184,7 +184,7 @@ async function fetchIamUser(token, iamUrl) { companyId: ui.companyId || '', // внутр. ID IAM (не W-формат) companyName: ui.company || activeProfile.company_name || '', isAdmin: !!ui.isAdmin, - fio: ui.fio || null, + fio: (ui.fio && ui.fio.fullName) || ui.fio || null, // ── из profiles ── profiles, // все компании (массив)