forked from mirrors/akkoma-fe
Clear username and password field on failed login
This commit is contained in:
parent
a6b6fe95c0
commit
c0e8111d64
1 changed files with 5 additions and 1 deletions
|
@ -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 = ''
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue