Skip to content

Commit

Permalink
MDL-45981 auth_cas: coding style fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
lameze committed Oct 1, 2015
1 parent 6d4cae0 commit 9b3ae64
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions auth/cas/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ function connectCAS() {
} 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;
Expand Down
2 changes: 1 addition & 1 deletion auth/cas/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
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)) {
Expand Down
4 changes: 2 additions & 2 deletions auth/cas/lang/en/auth_cas.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
$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 <br />eg: host.domain.fr';
Expand Down

0 comments on commit 9b3ae64

Please sign in to comment.