Loading email_tfa.info.yml +1 −1 Original line number Diff line number Diff line name: Email TFA description: Provide An Email TFA for users after login. core_version_requirement: ^8 || ^9 core_version_requirement: ^8 || ^9 || ^10 package: Security type: module configure: email_tfa.settings src/EventSubscriber/EmailTfaSubscriber.php +3 −3 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ use Drupal\Core\Routing\RouteMatchInterface; use Drupal\Core\Session\AccountInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\HttpKernel\Event\RequestEvent; use Symfony\Component\HttpKernel\KernelEvents; use Drupal\Core\Url; use Drupal\Core\Config\ConfigFactoryInterface; Loading Loading @@ -128,10 +128,10 @@ class EmailTfaSubscriber implements EventSubscriberInterface { /** * Redirect pattern based url. * * @param \Symfony\Component\HttpKernel\Event\GetResponseEvent $event * @param RequestEvent $event * Response event. */ public function emailTfaRedirection(GetResponseEvent $event) { public function emailTfaRedirection(RequestEvent $event) { $result = FALSE; $status = $this->config->get('status'); // Load our pathways for this module. Loading Loading
email_tfa.info.yml +1 −1 Original line number Diff line number Diff line name: Email TFA description: Provide An Email TFA for users after login. core_version_requirement: ^8 || ^9 core_version_requirement: ^8 || ^9 || ^10 package: Security type: module configure: email_tfa.settings
src/EventSubscriber/EmailTfaSubscriber.php +3 −3 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ use Drupal\Core\Routing\RouteMatchInterface; use Drupal\Core\Session\AccountInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\HttpKernel\Event\RequestEvent; use Symfony\Component\HttpKernel\KernelEvents; use Drupal\Core\Url; use Drupal\Core\Config\ConfigFactoryInterface; Loading Loading @@ -128,10 +128,10 @@ class EmailTfaSubscriber implements EventSubscriberInterface { /** * Redirect pattern based url. * * @param \Symfony\Component\HttpKernel\Event\GetResponseEvent $event * @param RequestEvent $event * Response event. */ public function emailTfaRedirection(GetResponseEvent $event) { public function emailTfaRedirection(RequestEvent $event) { $result = FALSE; $status = $this->config->get('status'); // Load our pathways for this module. Loading