From b23478b8614e06e0c54f02334e143c013fc66e6e Mon Sep 17 00:00:00 2001 From: Jared Cobb Date: Wed, 1 Jul 2015 13:49:24 -0600 Subject: [PATCH] Fixed an issue where some hosts do not support MCRYPT_DEV_URANDOM --- README.txt | 9 ++++++--- includes/class-ccb-core-plugin.php | 2 +- lib/Encryption/Encryption.php | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.txt b/README.txt index 7a6988d..9fc1d81 100644 --- a/README.txt +++ b/README.txt @@ -3,7 +3,7 @@ Contributors: jaredcobb Tags: ccb, church, api, chms Requires at least: 3.0.1 Tested up to: 4.2.2 -Stable tag: 0.9.0 +Stable tag: 0.9.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -51,7 +51,7 @@ alter your theme to *take advantage* of this data. You'll need to ensure your [group settings](https://support.churchcommunitybuilder.com/customer/portal/articles/361764-editing-groups) allow the group to be publicly listed. A great way to cross reference if your group is publicly visible is to visit -http://.ccbchurch.com/w_group_list.php and see if the missing group shows up there. +http://[your-subdomain].ccbchurch.com/w_group_list.php and see if the missing group shows up there. == Screenshots == @@ -60,5 +60,8 @@ http://.ccbchurch.com/w_group_list.php and see if the missing group s == Changelog == -= 0.9 = += 0.9.1 = +* Fixed an issue where some web hosts were not saving encypted passwords + += 0.9.0 = * Initial release diff --git a/includes/class-ccb-core-plugin.php b/includes/class-ccb-core-plugin.php index 4862420..dbe33a2 100644 --- a/includes/class-ccb-core-plugin.php +++ b/includes/class-ccb-core-plugin.php @@ -78,7 +78,7 @@ public function __construct() { $this->plugin_settings_name = 'ccb_core_settings'; $this->plugin_display_name = __( 'Church Community Builder Core API', $this->plugin_name ); $this->plugin_short_display_name = __( 'CCB Core API', $this->plugin_name ); - $this->version = '0.9.0'; + $this->version = '0.9.1'; } diff --git a/lib/Encryption/Encryption.php b/lib/Encryption/Encryption.php index 9be8154..e63de0e 100644 --- a/lib/Encryption/Encryption.php +++ b/lib/Encryption/Encryption.php @@ -80,7 +80,7 @@ public function decrypt($data, $key) { * @returns string The encrypted data */ public function encrypt($data, $key) { - $salt = mcrypt_create_iv(128, MCRYPT_DEV_URANDOM); + $salt = mcrypt_create_iv(128, MCRYPT_RAND); list ($cipherKey, $macKey, $iv) = $this->getKeys($salt, $key); $data = $this->pad($data);