BookStack/resources/js/components/auto-submit.js
Dan Brown a1b1f8138a
Updated email confirmation flow so confirmation is done via POST
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
2022-11-12 15:11:59 +00:00

12 lines
130 B
JavaScript

class AutoSubmit {
setup() {
this.form = this.$el;
this.form.submit();
}
}
export default AutoSubmit;