From 53d3a2a2dfbc261a0505c1ca94dcfcd9810b6759 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 11 Apr 2019 20:42:51 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 9 ++++++--- ayanova/src/registerServiceWorker.js | 2 +- ayanova/src/views/login.vue | 22 ++++++++++++++++++++-- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 911e9680..a47af7b8 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -21,9 +21,12 @@ Just put up latest build to server now... TEST RESULTS All platforms and browsers - - Initially outdated, had to force a refresh to make it load the latest version + - IN PROGRESS: Initially outdated, had to force a refresh to make it load the latest version + - STATUS: I'm going to do another update and see if it's handled properly - I thought they would update automatically via the loader code?!? - - Login user name field auto capitalizes first character on phones, need that to not do it + - + - FIXED: Login user name field auto capitalizes first character on phones, need that to not do it + - Login, doesn't have any ui if failed login, maybe a red frowny face icon? :) - need clear buttons on pw and login - Numeric input fields don't give numeric keyboard - Save on broken rules in Widget edit form it's not clear that save does nothing if there are broken rules. Button should be deactivated or there should be a message if you click on it or something. @@ -41,7 +44,7 @@ All platforms and browsers - Application name is all lowercase "ayanova" when installed to device, must be something in the manifest files? - Check about page localization code, is it firing in the right place because on Edge and iPad firefox it didn't show localized at first until a refresh so it fetched the keys but didn't display properly - Calendar on iPad in two occasions with ff and opera the calendar date could not be selected until a time was changed then the date worked. Before that it would always stay the same no matter what selection was made and the UI would not show a change on select or press of date either. - + iPad diff --git a/ayanova/src/registerServiceWorker.js b/ayanova/src/registerServiceWorker.js index e69b3e19..03f508db 100644 --- a/ayanova/src/registerServiceWorker.js +++ b/ayanova/src/registerServiceWorker.js @@ -1,5 +1,5 @@ /* eslint-disable no-console */ - +//INFO: https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-pwa import { register } from "register-service-worker"; if (process.env.NODE_ENV === "production") { diff --git a/ayanova/src/views/login.vue b/ayanova/src/views/login.vue index 37881832..973d6bdc 100644 --- a/ayanova/src/views/login.vue +++ b/ayanova/src/views/login.vue @@ -17,6 +17,12 @@ prepend-icon="fa-user" label="User" required + clearable + autocomplete="off" + autocorrect="off" + autocapitalize="off" + spellcheck="false" + :error="errorBadCreds" > @@ -27,6 +33,8 @@ label="Password" type="password" required + clearable + :error="errorBadCreds" > @@ -51,12 +59,15 @@ export default { input: { username: "manager", password: "l3tm3in" - } + }, + errorBadCreds: false }; }, methods: { login() { if (this.input.username != "" && this.input.password != "") { + this.errorBadCreds = false; + var that = this; auth .authenticate(this.input.username, this.input.password) .then(() => { @@ -64,8 +75,15 @@ export default { }) .catch(function(error) { /* xeslint-disable-next-line */ + if ( + error.message && + error.message.includes("ErrorUserNotAuthenticated") + ) { + that.errorBadCreds = true; + // alert("BAD CREDENTIALS - BOO!"); + } //console.log(error); - alert("login failed: " + error); + // alert("login failed: " + error); }); } }