all over the place with comments and console statements but now properly chains all the calls for login (except translation may have an issue)

This commit is contained in:
2020-06-10 21:05:45 +00:00
parent c0fcecb3f8
commit 0a43e53ab7
25 changed files with 1966 additions and 976 deletions

View File

@@ -256,14 +256,16 @@ export default {
let vm = this;
if (vm.input.username != "" && vm.input.password != "") {
vm.errorBadCreds = false;
auth
.authenticate(vm.input.username, vm.input.password)
.then(() => {
console.log("LOGIN:BACKFROMAUTHENTICATE");
if (vm.$store.state.openObject != null) {
window.$gz.eventBus.$emit("openobject", null);
} else {
vm.$router.push(vm.$store.state.homePage);
if (!vm.$store.state.homePage) {
console.log("####LOGIN END BUT homePage is empty!");
} else vm.$router.push(vm.$store.state.homePage);
}
})
.catch(function handleCaughtLoginError(error) {