aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwakarimasen <wakarimasen@airmail.cc>2017-03-08 19:08:01 +0100
committerwakarimasen <wakarimasen@airmail.cc>2017-03-08 19:08:01 +0100
commitc0e8111d642ca9f85fbb4091f2ac9e86f4238a58 (patch)
tree03afe71bf21a263c721e54b95201d84b79806479 /src
parenta6b6fe95c0fe2aa60ebbfca87fde47e629035c49 (diff)
Clear username and password field on failed login
Diffstat (limited to 'src')
-rw-r--r--src/components/login_form/login_form.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/login_form/login_form.js b/src/components/login_form/login_form.js
index 2ad5b0b5..e489f381 100644
--- a/src/components/login_form/login_form.js
+++ b/src/components/login_form/login_form.js
@@ -10,7 +10,11 @@ const LoginForm = {
submit () {
this.$store.dispatch('loginUser', this.user).then(
() => { this.$router.push('/main/friends')},
- () => { this.authError = true }
+ () => {
+ this.authError = true
+ this.user.username = ''
+ this.user.password = ''
+ }
)
}
}