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