fix
This commit is contained in:
parent
6ba687d4ae
commit
a05a67fa6f
2
index.js
2
index.js
@ -25,7 +25,7 @@ async function login (user, password, host = '') {
|
||||
const salt_str = await fetch (`${host}/auth`, { headers: { user } })
|
||||
.then (async (res) => {
|
||||
if (res.status !== http_consts.status_ok)
|
||||
return '');
|
||||
return '';
|
||||
|
||||
return await res.text ();
|
||||
});
|
||||
|
Reference in New Issue
Block a user