This commit is contained in:
2020-05-15 18:29:22 +00:00
parent 60f2511c5c
commit c866ad684f
4 changed files with 26 additions and 5 deletions

View File

@@ -226,8 +226,8 @@ export default {
window.$gz.api
.get("notify/hello")
.then(res => {
if (res.data) {
// console.log("res.data:", res.data);
if (res.data != null) {
// console.log("res.data:", res.data);
vm.trialMode = !res.data;
}
})
@@ -260,7 +260,11 @@ export default {
auth
.authenticate(vm.input.username, vm.input.password)
.then(() => {
vm.$router.push(vm.$store.state.homePage);
if (vm.$store.state.openObject) {
window.$gz.eventBus.$emit("openobject", null);
} else {
vm.$router.push(vm.$store.state.homePage);
}
})
.catch(function handleCaughtLoginError(error) {
//bad creds?