fix requestTicket return value
This commit is contained in:
parent
c0c0805aa3
commit
d09b7b59ba
3
utils.js
3
utils.js
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user