This commit is contained in:
2019-05-02 19:48:33 +00:00
parent 640c6ef095
commit 342b923964
2 changed files with 4 additions and 13 deletions

View File

@@ -441,7 +441,6 @@ export default {
//duplicate
//navigate to new record
throw "T$EST";
//alert("STUB: DUPLICATE");
}
}
};

View File

@@ -2,12 +2,7 @@
<v-container fluid>
<v-layout row wrap>
<v-flex xs12 class="hidden-sm-and-down text-xs-center" mt-5 ml-5 pl-5>
<v-img
:src="require('../assets/logo.svg')"
class="my-3"
contain
height="200"
></v-img>
<v-img :src="require('../assets/logo.svg')" class="my-3" contain height="200"></v-img>
</v-flex>
<v-flex xs12 class="hidden-md-and-up text-xs-center">
<v-img :src="require('../assets/logo.svg')" contain height="64"></v-img>
@@ -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);
});
}
}