From 9b3ae641e49d303917391d02b8bd9b5334644239 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Thu, 1 Oct 2015 15:08:05 +0800 Subject: [PATCH] MDL-45981 auth_cas: coding style fixing --- auth/cas/auth.php | 4 ++-- auth/cas/config.html | 2 +- auth/cas/lang/en/auth_cas.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/auth/cas/auth.php b/auth/cas/auth.php index 5fc773baa7d..afa87dd2f8d 100644 --- a/auth/cas/auth.php +++ b/auth/cas/auth.php @@ -183,9 +183,9 @@ class auth_plugin_cas extends auth_plugin_ldap { } else { phpCAS::client($this->config->casversion, $this->config->hostname, (int) $this->config->port, $this->config->baseuri, false); } - //Some CAS installs require SSLv3, etc be explicitly set. + // Some CAS installs require SSLv3 that should be explicitly set. if (!empty($this->config->curl_ssl_version)) { - phpCAS::setExtraCurlOption(CURLOPT_SSLVERSION,$this->config->curl_ssl_version); + phpCAS::setExtraCurlOption(CURLOPT_SSLVERSION, $this->config->curl_ssl_version); } $connected = true; diff --git a/auth/cas/config.html b/auth/cas/config.html index 1a1e0edfce0..394c5188a39 100644 --- a/auth/cas/config.html +++ b/auth/cas/config.html @@ -33,7 +33,7 @@ if (!isset ($config->certificate_check)) { if (!isset ($config->certificate_path)) { $config->certificate_path = ''; } -if (!isset ($config->curl_ssl_version)) { +if (!isset($config->curl_ssl_version)) { $config->curl_ssl_version = ''; } if (!isset($config->logout_return_url)) { diff --git a/auth/cas/lang/en/auth_cas.php b/auth/cas/lang/en/auth_cas.php index e85588b07f1..fb349a2c533 100644 --- a/auth/cas/lang/en/auth_cas.php +++ b/auth/cas/lang/en/auth_cas.php @@ -35,10 +35,10 @@ $string['auth_cas_certificate_path_empty'] = 'If you turn on Server validation, $string['auth_cas_certificate_check_key'] = 'Server validation'; $string['auth_cas_certificate_path'] = 'Path of the CA chain file (PEM Format) to validate the server certificate'; $string['auth_cas_certificate_path_key'] = 'Certificate path'; -$string['auth_cas_curl_ssl_version'] = 'The SSL version (2 or 3) to use. By default PHP will try to determine this itself, although in some cases this must be set manually.'; -$string['auth_cas_curl_ssl_version_key'] = 'cURL SSL Version'; $string['auth_cas_create_user'] = 'Turn this on if you want to insert CAS-authenticated users in Moodle database. If not then only users who already exist in the Moodle database can log in.'; $string['auth_cas_create_user_key'] = 'Create user'; +$string['auth_cas_curl_ssl_version'] = 'The SSL version (2 or 3) to use. By default PHP will try to determine this itself, although in some cases this must be set manually.'; +$string['auth_cas_curl_ssl_version_key'] = 'cURL SSL Version'; $string['auth_casdescription'] = 'This method uses a CAS server (Central Authentication Service) to authenticate users in a Single Sign On environment (SSO). You can also use a simple LDAP authentication. If the given username and password are valid according to CAS, Moodle creates a new user entry in its database, taking user attributes from LDAP if required. On following logins only the username and password are checked.'; $string['auth_cas_enabled'] = 'Turn this on if you want to use CAS authentication.'; $string['auth_cas_hostname'] = 'Hostname of the CAS server
eg: host.domain.fr'; -- 2.43.0