Skip to content

Commit 63d75ad

Browse files
committed
OXDEV-9078 Revert accidentaly removed used method
Signed-off-by: Anton Fedurtsya <anton@fedurtsya.com>
1 parent 63a7bc5 commit 63d75ad

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/Shared/Core/ViewConfig.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
namespace OxidEsales\SecurityModule\Shared\Core;
1111

12+
use OxidEsales\SecurityModule\Authentication\OAuth2\Service\ProviderCollectorInterface;
1213
use OxidEsales\SecurityModule\Authentication\TwoFactorAuth\Settings\TwoFAShopSettingsInterface;
1314
use OxidEsales\SecurityModule\Captcha\Captcha\Image\Service\ImageCaptchaService;
1415
use OxidEsales\SecurityModule\Captcha\Service\CaptchaServiceInterface;
@@ -52,6 +53,13 @@ public function getImage(): string
5253
return 'data:image/jpeg;base64,' . base64_encode($images[ImageCaptchaService::CAPTCHA_NAME]);
5354
}
5455

56+
public function getActiveProviders(): iterable
57+
{
58+
$providers = $this->getService(ProviderCollectorInterface::class)->getProviders();
59+
60+
return array_filter($providers, fn($provider) => $provider->isActive());
61+
}
62+
5563
// todo-high: questionable if we want this method here at all, its just for one template - controller instead?
5664
public function isTwoFAEnabledForShop(): bool
5765
{

0 commit comments

Comments
 (0)