mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
a1b1f8138a
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; |