]> BookStack Code Mirror - bookstack/commit
Prevented email confirmation exception throw on registration
authorDan Brown <redacted>
Tue, 4 Aug 2020 16:54:50 +0000 (17:54 +0100)
committerDan Brown <redacted>
Tue, 4 Aug 2020 16:54:50 +0000 (17:54 +0100)
commit87a5340a0526d4f46d4da676ce44f4e26039d281
treee182134e98c6c15d1326d41273059f4d10356c93
parentc076ca408cb43b4e276938c68e6ab004f89645f2
Prevented email confirmation exception throw on registration

Was preventing any other registration actions from taking place such as
LDAP/SAML group sync. Email confirmation should be actioned by
middleware on post-registration redirect.

Added testing to cover.
Tested for LDAP, SAML and normal registration with email confirmation
required to ensure flows work as expected.

Fixes #2082
app/Auth/Access/RegistrationService.php
app/Auth/Access/Saml2Service.php
tests/Auth/LdapTest.php
tests/Auth/Saml2Test.php