1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Updated flow to ensure /register/confirm route is used where needed

Was accidentally skipped during previous updates. Will now be used on
saml, ldap & standard registration where required.
Uses session to know if the email was just sent and, if so, show the
confirmation route.
This commit is contained in:
Dan Brown
2020-09-05 17:26:48 +01:00
parent c029741a17
commit ff1ee2d71f
5 changed files with 18 additions and 2 deletions

View File

@ -620,7 +620,7 @@ class LdapTest extends BrowserKitTest
]
]]);
$this->mockUserLogin()->seePageIs('/register/confirm/awaiting');
$this->mockUserLogin()->seePageIs('/register/confirm');
$this->seeInDatabase('users', [
'email' => $user->email,
'email_confirmed' => false,