Skip to content

Commit 548a39a

Browse files
committed
fix: code review
fix #5459 (comment) Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent b244d4f commit 548a39a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/Service/IdentifyMethod/TwofactorGateway.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ public function isTwofactorGatewayEnabled(): bool {
6464
/** @var Factory */
6565
$gatewayFactory = Server::get(Factory::class);
6666

67-
$full = get_class($this);
68-
$parts = explode('\\', $full);
69-
$gatewayName = end($parts);
67+
$gatewayName = strtolower($this->getId());
7068

7169
$gateway = $gatewayFactory->get($gatewayName);
7270
return $gateway->isComplete();

0 commit comments

Comments
 (0)