mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-02-18 23:22:48 +08:00

To avoid non-user GET requests (Such as those from email scanners) auto-triggering the confirm submission. Made auto-submit the form via JavaScript in this extra added step with user-link backup to keep existing user flow experience. Closes #3797
12 lines
130 B
JavaScript
12 lines
130 B
JavaScript
|
|
class AutoSubmit {
|
|
|
|
setup() {
|
|
this.form = this.$el;
|
|
|
|
this.form.submit();
|
|
}
|
|
|
|
}
|
|
|
|
export default AutoSubmit; |