Changeset 1954575
- Timestamp:
- 10/10/2018 01:49:31 PM (7 years ago)
- Location:
- divvyhq/trunk
- Files:
-
- 4 edited
-
README.txt (modified) (2 diffs)
-
admin/class-divvyhq-admin.php (modified) (1 diff)
-
divvyhq.php (modified) (3 diffs)
-
includes/class-divvyhq.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
divvyhq/trunk/README.txt
r1866628 r1954575 5 5 Tested up to: 4.9.5 6 6 Requires PHP: 5.2.4 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 40 40 == Changelog == 41 41 42 = 1.0.3 = 43 Use add_filter to configure JWT token expiration. 44 42 45 = 1.0.2 = 43 46 Set JWT Secret Key to WP constant and configure .htaccess. -
divvyhq/trunk/admin/class-divvyhq-admin.php
r1866628 r1954575 226 226 } 227 227 } 228 229 /** 230 * This function will set the JWT token to expire one year from 231 * creation. The JWT default is only seven days. 232 * 233 * @param $issuedAt 234 * @return integer 235 */ 236 public function divvyhq_jwt_auth_expire() 237 { 238 return time() + (DAY_IN_SECONDS * 365); 239 } 228 240 } -
divvyhq/trunk/divvyhq.php
r1866628 r1954575 16 16 * Plugin URI: https://www.wordpress.com/ 17 17 * Description: This plugin allows users to sync their content from their WordPress instance back to DivvyHQ. 18 * Version: 1.0. 218 * Version: 1.0.3 19 19 * Author: Alluresoft, LLC 20 20 * Author URI: https://www.divvyhq.com/ … … 38 38 * Current plugin version. 39 39 */ 40 define('DIVVYHQ_VERSION', '1.0. 2');40 define('DIVVYHQ_VERSION', '1.0.3'); 41 41 42 42 … … 46 46 if (!defined('JWT_AUTH_SECRET_KEY') && defined('SECURE_AUTH_SALT')) { 47 47 define('JWT_AUTH_SECRET_KEY', SECURE_AUTH_SALT); 48 }49 50 /**51 * Set timeout for JWT Auth Token52 */53 if (!defined('JWT_AUTH_EXPIRE')) {54 define('JWT_AUTH_EXPIRE', time() + (DAY_IN_SECONDS * 90));55 48 } 56 49 -
divvyhq/trunk/includes/class-divvyhq.php
r1866628 r1954575 59 59 $this->version = DIVVYHQ_VERSION; 60 60 } else { 61 $this->version = '1.0. 2';61 $this->version = '1.0.3'; 62 62 } 63 63 … … 139 139 $plugin_admin = new DivvyHQ_Admin($this->get_plugin_name(), $this->get_version()); 140 140 141 // Set the token expiration to one year. 142 $this->loader->add_filter('jwt_auth_expire', $plugin_admin, 'divvyhq_jwt_auth_expire'); 143 141 144 // WP admin settings 142 145 $this->loader->add_action('admin_menu', $plugin_admin, 'add_divvyhq_admin_menu');
Note: See TracChangeset
for help on using the changeset viewer.