Skip to content

Commit d75a48e

Browse files
committed
Update Authenticate.php
1 parent 0e04e55 commit d75a48e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/Authenticate.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function authenticate($user, $userLogin)
108108
$idpMetadata = $metadata->getMetaData($samlSpIdp, 'saml20-idp-remote');
109109
$locale = get_locale();
110110
$lang = substr($locale, 0, 2);
111-
$idpName = $idpMetadata['name'][$lang] ?? '';
111+
$idpName = $idpMetadata['name'][$lang] ?? $idpMetadata['name']['en'] ?? '';
112112

113113
// Retrieve the attributes of the current user.
114114
// If the user isn't authenticated, an empty array will be returned.

0 commit comments

Comments
 (0)