From 342b923964ec75ecb66529f561065eb4fb2a2654 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 2 May 2019 19:48:33 +0000 Subject: [PATCH] --- ayanova/src/views/inventory-widget-edit.vue | 1 - ayanova/src/views/login.vue | 16 ++++------------ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/ayanova/src/views/inventory-widget-edit.vue b/ayanova/src/views/inventory-widget-edit.vue index a502d31b..85eaaab0 100644 --- a/ayanova/src/views/inventory-widget-edit.vue +++ b/ayanova/src/views/inventory-widget-edit.vue @@ -441,7 +441,6 @@ export default { //duplicate //navigate to new record throw "T$EST"; - //alert("STUB: DUPLICATE"); } } }; diff --git a/ayanova/src/views/login.vue b/ayanova/src/views/login.vue index 6f098a1c..0b723a03 100644 --- a/ayanova/src/views/login.vue +++ b/ayanova/src/views/login.vue @@ -2,12 +2,7 @@ - + @@ -80,11 +75,11 @@ export default { login() { if (this.input.username != "" && this.input.password != "") { this.errorBadCreds = false; - var that = this; + var vm = this; auth .authenticate(this.input.username, this.input.password) .then(() => { - this.$router.push({ name: "home" }); + vm.$router.push({ name: "home" }); }) .catch(function handleCaughtLoginError(error) { /* xeslint-disable-next-line */ @@ -92,11 +87,8 @@ export default { error.message && error.message.includes("ErrorUserNotAuthenticated") ) { - that.errorBadCreds = true; - // alert("BAD CREDENTIALS - BOO!"); + vm.errorBadCreds = true; } - //console.log(error); - // alert("login failed: " + error); }); } }