-
Improvement
-
Resolution: Fixed
-
Minor
-
4.1.1
-
MOODLE_401_STABLE
-
MOODLE_405_STABLE
-
The label on the Shibboleth authentication login button is configurable but multilang text is not supported, while it is supported for CAS authentication.
This problem is fixed by replacing the line in function loginpage_idp_list() in auth/shibboleth/auth.php:
$result[] = ['url' => $url, 'iconurl' => $iconurl, 'name' => $config->login_name];
|
with the line:
$result[] = ['url' => $url, 'iconurl' => $iconurl, 'name' => format_string($config->login_name)];
|
Reproduction Steps:
- Make sure multilang filter is enabled and a lang pack (say German) is installed.
- Enable Shibboleth authentication in "Site administration" > "Plugins" > "Authentication" > "Manage authentication" page.
- In the Shibboleth settings page, Enter any dummy word into the "Username" field, and "Shibboleth Login <span class="multilang" lang="en">(EN)</span><span class="multilang" lang="de">(DE)</span>" into the "Authentication method name" field, then click "Save changes".
- Log out, then visit the login page.
- You see "Shibboleth Login <span class="multilang" lang="en">(EN)</span><span class="multilang" lang="de">(DE)</span>" button in the "Log in using your account on:" section.