This commit is contained in:
@@ -441,7 +441,6 @@ export default {
|
|||||||
//duplicate
|
//duplicate
|
||||||
//navigate to new record
|
//navigate to new record
|
||||||
throw "T$EST";
|
throw "T$EST";
|
||||||
//alert("STUB: DUPLICATE");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,12 +2,7 @@
|
|||||||
<v-container fluid>
|
<v-container fluid>
|
||||||
<v-layout row wrap>
|
<v-layout row wrap>
|
||||||
<v-flex xs12 class="hidden-sm-and-down text-xs-center" mt-5 ml-5 pl-5>
|
<v-flex xs12 class="hidden-sm-and-down text-xs-center" mt-5 ml-5 pl-5>
|
||||||
<v-img
|
<v-img :src="require('../assets/logo.svg')" class="my-3" contain height="200"></v-img>
|
||||||
:src="require('../assets/logo.svg')"
|
|
||||||
class="my-3"
|
|
||||||
contain
|
|
||||||
height="200"
|
|
||||||
></v-img>
|
|
||||||
</v-flex>
|
</v-flex>
|
||||||
<v-flex xs12 class="hidden-md-and-up text-xs-center">
|
<v-flex xs12 class="hidden-md-and-up text-xs-center">
|
||||||
<v-img :src="require('../assets/logo.svg')" contain height="64"></v-img>
|
<v-img :src="require('../assets/logo.svg')" contain height="64"></v-img>
|
||||||
@@ -80,11 +75,11 @@ export default {
|
|||||||
login() {
|
login() {
|
||||||
if (this.input.username != "" && this.input.password != "") {
|
if (this.input.username != "" && this.input.password != "") {
|
||||||
this.errorBadCreds = false;
|
this.errorBadCreds = false;
|
||||||
var that = this;
|
var vm = this;
|
||||||
auth
|
auth
|
||||||
.authenticate(this.input.username, this.input.password)
|
.authenticate(this.input.username, this.input.password)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$router.push({ name: "home" });
|
vm.$router.push({ name: "home" });
|
||||||
})
|
})
|
||||||
.catch(function handleCaughtLoginError(error) {
|
.catch(function handleCaughtLoginError(error) {
|
||||||
/* xeslint-disable-next-line */
|
/* xeslint-disable-next-line */
|
||||||
@@ -92,11 +87,8 @@ export default {
|
|||||||
error.message &&
|
error.message &&
|
||||||
error.message.includes("ErrorUserNotAuthenticated")
|
error.message.includes("ErrorUserNotAuthenticated")
|
||||||
) {
|
) {
|
||||||
that.errorBadCreds = true;
|
vm.errorBadCreds = true;
|
||||||
// alert("BAD CREDENTIALS - BOO!");
|
|
||||||
}
|
}
|
||||||
//console.log(error);
|
|
||||||
// alert("login failed: " + error);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user