Add and commented out SSL options, fix trailing whitespace.
This commit is contained in:
parent
abae1901c0
commit
692acc9eaf
2 changed files with 18 additions and 11 deletions
|
@ -49,6 +49,12 @@ if (!function_exists('wp_authenticate')) {
|
||||||
# plaintext passwords to show up in error logs.
|
# plaintext passwords to show up in error logs.
|
||||||
curl_setopt($ch, CURLOPT_VERBOSE, 0);
|
curl_setopt($ch, CURLOPT_VERBOSE, 0);
|
||||||
|
|
||||||
|
# The following two lines need to be uncommented when using a test FAS
|
||||||
|
# with an invalid cert. Otherwise they should be commented (or set to
|
||||||
|
# True) for security.
|
||||||
|
#curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
|
||||||
|
#curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
|
||||||
|
|
||||||
$fasuserdata = json_decode(curl_exec($ch), true);
|
$fasuserdata = json_decode(curl_exec($ch), true);
|
||||||
curl_close ($ch);
|
curl_close ($ch);
|
||||||
|
|
||||||
|
|
|
@ -19,11 +19,12 @@ class Auth_FAS extends AuthPlugin {
|
||||||
# plaintext passwords to show up in error logs.
|
# plaintext passwords to show up in error logs.
|
||||||
curl_setopt($ch, CURLOPT_VERBOSE, 0);
|
curl_setopt($ch, CURLOPT_VERBOSE, 0);
|
||||||
|
|
||||||
# The following two lines need to be enabled when using a test FAS
|
# The following two lines need to be uncommented when using a test FAS
|
||||||
# with an invalid cert. Otherwise they should be commented (or
|
# with an invalid cert. Otherwise they should be commented (or set to
|
||||||
# set to True) for security.
|
# True) for security.
|
||||||
#curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
|
#curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
|
||||||
#curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
|
#curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
|
||||||
|
|
||||||
$response = json_decode(curl_exec($ch), true);
|
$response = json_decode(curl_exec($ch), true);
|
||||||
curl_close ($ch);
|
curl_close ($ch);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue