mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
fix(login): Prevent submitting the login form multiple times
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
This commit is contained in:
parent
95148ffe92
commit
f6e6d7a834
1 changed files with 7 additions and 1 deletions
|
|
@ -274,7 +274,13 @@ export default {
|
|||
updateUsername() {
|
||||
this.$emit('update:username', this.user)
|
||||
},
|
||||
submit() {
|
||||
submit(event) {
|
||||
if (this.loading) {
|
||||
// Prevent the form from being submitted twice
|
||||
event.preventDefault()
|
||||
return
|
||||
}
|
||||
|
||||
this.loading = true
|
||||
this.$emit('submit')
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue