From 417d546c26978f75c008a75838cb3aed61044041 Mon Sep 17 00:00:00 2001 From: Andrey Platov Date: Mon, 9 Aug 2021 10:00:14 +0200 Subject: [PATCH] accounts fix Signed-off-by: Andrey Platov --- dev/account/src/index.ts | 2 +- plugins/login-resources/src/utils.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dev/account/src/index.ts b/dev/account/src/index.ts index 08b5db8b64..5a3d46ad0f 100644 --- a/dev/account/src/index.ts +++ b/dev/account/src/index.ts @@ -25,6 +25,6 @@ export function handle (req: string | null | undefined, serverEndpoint: string): if (resp.error !== undefined) { return { statusCode: 401, body: '' } } return { statusCode: 200, - body: JSON.stringify(resp.result) + body: JSON.stringify(resp) } } diff --git a/plugins/login-resources/src/utils.ts b/plugins/login-resources/src/utils.ts index 90585c476b..67840200d6 100644 --- a/plugins/login-resources/src/utils.ts +++ b/plugins/login-resources/src/utils.ts @@ -59,9 +59,10 @@ export async function doLogin ( body: serialize(request) }) const result: Response = await response.json() - + console.log('login result', result) return [result.error ?? OK, result.result] } catch (err) { + console.log('login error', err) return [unknownError(err), undefined] } }