aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/login_form/login_form.js4
-rw-r--r--src/components/login_form/login_form.vue2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/components/login_form/login_form.js b/src/components/login_form/login_form.js
index e489f381..bc801397 100644
--- a/src/components/login_form/login_form.js
+++ b/src/components/login_form/login_form.js
@@ -10,8 +10,8 @@ const LoginForm = {
submit () {
this.$store.dispatch('loginUser', this.user).then(
() => { this.$router.push('/main/friends')},
- () => {
- this.authError = true
+ (error) => {
+ this.authError = error
this.user.username = ''
this.user.password = ''
}
diff --git a/src/components/login_form/login_form.vue b/src/components/login_form/login_form.vue
index 279469ee..8a32e064 100644
--- a/src/components/login_form/login_form.vue
+++ b/src/components/login_form/login_form.vue
@@ -18,7 +18,7 @@
<button :disabled="loggingIn" type='submit' class='btn btn-default base05 base01-background'>Submit</button>
</div>
<div v-if="authError" class='form-group'>
- <button disabled='true' class='btn btn-default base05 error'>Error logging in, try again</button>
+ <button disabled='true' class='btn btn-default base05 error'>{{authError}}</button>
</div>
</form>
</div>