This commit is contained in:
@@ -354,13 +354,13 @@ export default {
|
||||
}
|
||||
|
||||
//call erase
|
||||
let r = await window.$gz.api.upsertEx(
|
||||
let r = await window.$gz.api.upsert(
|
||||
"license/permanently-erase-all-data",
|
||||
"I understand"
|
||||
);
|
||||
|
||||
//send request
|
||||
r = await window.$gz.api.upsertEx("license/trialRequest", vm.request);
|
||||
r = await window.$gz.api.upsert("license/trialRequest", vm.request);
|
||||
|
||||
//a string is returned and will start with E1 if it's an error
|
||||
if (r.startsWith("E1")) {
|
||||
@@ -402,7 +402,7 @@ export default {
|
||||
}
|
||||
|
||||
//call fetch key on server
|
||||
let r = await window.$gz.api.upsertEx("license");
|
||||
let r = await window.$gz.api.upsert("license");
|
||||
//r should just be a string response unless there is an error in which case it's an object
|
||||
if (r.error) {
|
||||
throw r;
|
||||
@@ -452,7 +452,7 @@ export default {
|
||||
}
|
||||
}
|
||||
//call erase
|
||||
await window.$gz.api.upsertEx(
|
||||
await window.$gz.api.upsert(
|
||||
"license/permanently-erase-all-data",
|
||||
"I understand"
|
||||
);
|
||||
|
||||
@@ -183,14 +183,14 @@ export default {
|
||||
return;
|
||||
}
|
||||
//call erase
|
||||
await window.$gz.api.upsertEx(
|
||||
await window.$gz.api.upsert(
|
||||
"license/permanently-erase-all-data",
|
||||
"I understand"
|
||||
);
|
||||
}
|
||||
|
||||
//call seed route
|
||||
let jobId = await window.$gz.api.upsertEx(
|
||||
let jobId = await window.$gz.api.upsert(
|
||||
`trial/seed/${vm.obj.seedLevel}/${vm.obj.timeZoneOffset}`
|
||||
);
|
||||
if (jobId.error) {
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
|
||||
<script>
|
||||
/* xeslint-disable */
|
||||
import auth from "../api/auth";
|
||||
|
||||
import { processLogin, processLogout } from "../api/authutil";
|
||||
|
||||
export default {
|
||||
@@ -281,14 +281,17 @@ export default {
|
||||
vm.input.username == "superuser" && vm.input.password == "l3tm3in";
|
||||
|
||||
try {
|
||||
let res = await window.$gz.api.upsertEx("auth", {
|
||||
login: vm.input.username,
|
||||
password: vm.input.password
|
||||
});
|
||||
let res = await window.$gz.api.upsert(
|
||||
"auth",
|
||||
{
|
||||
login: vm.input.username,
|
||||
password: vm.input.password
|
||||
},
|
||||
true
|
||||
);
|
||||
|
||||
if (res.error) {
|
||||
//todo, this is shitty if it's just a bad login creds so handle that here instead of in cacth block
|
||||
debugger;
|
||||
//don't expect this to ever get called but just in case
|
||||
throw res.error;
|
||||
}
|
||||
await processLogin(res.data, loggedInWithKnownPassword);
|
||||
|
||||
Reference in New Issue
Block a user