diff --git a/core/src/components/login/LoginForm.vue b/core/src/components/login/LoginForm.vue index 33cc8833564..c08c5172581 100644 --- a/core/src/components/login/LoginForm.vue +++ b/core/src/components/login/LoginForm.vue @@ -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') },