summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rw-r--r--pages/signin.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/pages/signin.vue b/pages/signin.vue
index de80c05..c0a4342 100644
--- a/pages/signin.vue
+++ b/pages/signin.vue
@@ -50,7 +50,11 @@ export default {
event.preventDefault();
const f = this.form;
- if (!(f.username && f.password)) return;
+ if (!(f.username && f.password)) {
+ this.$toast.error("Every field is required");
+ return;
+ }
+
this.$store.dispatch("auth/login", f).then((response) => {
if (response.status != 200) {
this.$toast.error(response.data.error);