]> BookStack Code Mirror - bookstack/commit
Added back email confirmation check in middleware
authorDan Brown <redacted>
Mon, 30 Aug 2021 20:28:17 +0000 (21:28 +0100)
committerDan Brown <redacted>
Mon, 30 Aug 2021 20:28:17 +0000 (21:28 +0100)
commit2740603d99099b2efb607e06f760e8f454bc0768
tree6a64a18c51170b9fffcbe97618f4c47cbaf88735
parent3e870c30e1aae8f6367370d99fbed9da68e70148
Added back email confirmation check in middleware

During writing of the update notes, found that the upgrade path would be
tricky from a security point of view. If people were pending email
confirmation but had an active session, they could technically be
actively logged in after the next release.

Added middlware as an extra precaution for now.
app/Http/Kernel.php
app/Http/Middleware/CheckEmailConfirmed.php [new file with mode: 0644]
tests/Auth/AuthTest.php