Skip to content

Commit

Permalink
Issue #83: QA remark: Document the 'user.register' route conditional …
Browse files Browse the repository at this point in the history
…redirect.
  • Loading branch information
claudiu-cristea committed Jun 5, 2019
1 parent 7b7f2e4 commit 51f96eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Routing/RouteSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ protected function alterRoutes(RouteCollection $collection): void {

}

// Replace the core register route controller.
// Switch the Drupal user register form with a redirect to the EU Login
// registration if this option is enabled in the module configuration.
$config = $this->configFactory->get('oe_authentication.settings');
if ($config->get('redirect_user_register_route')) {
$route = $collection->get('user.register');
Expand Down

0 comments on commit 51f96eb

Please sign in to comment.