]> BookStack Code Mirror - bookstack/commit
Updated email confirmation flow so confirmation is done via POST
authorDan Brown <redacted>
Sat, 12 Nov 2022 15:10:14 +0000 (15:10 +0000)
committerDan Brown <redacted>
Sat, 12 Nov 2022 15:11:59 +0000 (15:11 +0000)
commita1b1f8138aa9c439dc6cf375d8f843c93ceedbe3
tree677f82b9477ec52bc1b33e4f62bcbc6367fa683d
parent0e627a6e05300718375ae36794b0e0f76217be08
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
app/Http/Controllers/Auth/ConfirmEmailController.php
resources/js/components/auto-submit.js [new file with mode: 0644]
resources/js/components/index.js
resources/lang/en/auth.php
resources/views/auth/register-confirm-accept.blade.php [new file with mode: 0644]
routes/web.php
tests/Auth/RegistrationTest.php
Morty Proxy This is a proxified and sanitized view of the page, visit original site.