From 22d1c984d5fc0e27c98b46859eb9ba3825a90778 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Fri, 6 Mar 2020 17:23:44 +0100 Subject: [PATCH] fix --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 7f3f67e..2484898 100644 --- a/index.js +++ b/index.js @@ -27,7 +27,8 @@ async function login (user, password, host = '') { if (res.status !== http_consts.status_ok) return ''; - return await res.text (); + const session_id = await res.text (); + return session_id; }); if (salt_str === '')