fix requestTicket return value

This commit is contained in:
Arthur Lu 2022-12-12 16:21:33 -08:00
parent c0c0805aa3
commit d09b7b59ba

View File

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