fix requestTicket return value

This commit is contained in:
Arthur Lu 2022-12-12 16:21:33 -08:00
parent 4aba318c9b
commit 40aea760e4

View File

@ -15,8 +15,7 @@ class NetworkError extends Error {
export async function requestTicket (username, password) {
let response = await request("/access/ticket", "POST", {username: `${username}@pve`, password: password}, false);
let data = await response.json();
return data;
return response;
}
export function setTicket (ticket) {