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] } }