From 61025edd680da9685729527da8e5e064699f551d Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 17 Nov 2019 17:44:30 +0100 Subject: [PATCH] YubiKey multiple servers --- lam/lib/2factor.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lam/lib/2factor.inc b/lam/lib/2factor.inc index dd4e2154..074c99e6 100644 --- a/lam/lib/2factor.inc +++ b/lam/lib/2factor.inc @@ -534,7 +534,12 @@ class TwoFactorProviderService { $tfConfig->isSelfService = true; $tfConfig->twoFactorAuthentication = $profile->twoFactorAuthentication; $tfConfig->twoFactorAuthenticationInsecure = $profile->twoFactorAuthenticationInsecure; - $tfConfig->twoFactorAuthenticationURL = $profile->twoFactorAuthenticationURL; + if ($tfConfig->twoFactorAuthentication == TwoFactorProviderService::TWO_FACTOR_YUBICO) { + $tfConfig->twoFactorAuthenticationURL = explode("\r\n", $profile->twoFactorAuthenticationURL); + } + else { + $tfConfig->twoFactorAuthenticationURL = $profile->twoFactorAuthenticationURL; + } $tfConfig->twoFactorAuthenticationClientId = $profile->twoFactorAuthenticationClientId; $tfConfig->twoFactorAuthenticationSecretKey = $profile->twoFactorAuthenticationSecretKey; if ($tfConfig->twoFactorAuthentication == TwoFactorProviderService::TWO_FACTOR_YUBICO) {