Changeset 2709643
- Timestamp:
- 04/14/2022 08:53:02 AM (4 years ago)
- Location:
- napps
- Files:
-
- 54 added
- 3 edited
-
tags/1.0.5 (added)
-
tags/1.0.5/composer.json (added)
-
tags/1.0.5/composer.lock (added)
-
tags/1.0.5/includes (added)
-
tags/1.0.5/includes/class-auth.php (added)
-
tags/1.0.5/includes/class-core.php (added)
-
tags/1.0.5/includes/class-exclusivecoupons.php (added)
-
tags/1.0.5/includes/class-setup.php (added)
-
tags/1.0.5/includes/class-smartbanner.php (added)
-
tags/1.0.5/includes/class-woocommerce.php (added)
-
tags/1.0.5/index.php (added)
-
tags/1.0.5/napps.php (added)
-
tags/1.0.5/phpcs.xml (added)
-
tags/1.0.5/public (added)
-
tags/1.0.5/public/css (added)
-
tags/1.0.5/public/css/napps.css (added)
-
tags/1.0.5/public/css/smartbanner.min.css (added)
-
tags/1.0.5/public/fonts (added)
-
tags/1.0.5/public/fonts/Montserrat-Medium.ttf (added)
-
tags/1.0.5/public/fonts/Montserrat-Regular.ttf (added)
-
tags/1.0.5/public/images (added)
-
tags/1.0.5/public/images/google-play-get.png (added)
-
tags/1.0.5/public/images/napps-logo.svg (added)
-
tags/1.0.5/public/images/star.svg (added)
-
tags/1.0.5/public/images/welcome_background.svg (added)
-
tags/1.0.5/public/js (added)
-
tags/1.0.5/public/js/smartbanner.min.js (added)
-
tags/1.0.5/readme.txt (added)
-
tags/1.0.5/vendor (added)
-
tags/1.0.5/vendor/autoload.php (added)
-
tags/1.0.5/vendor/composer (added)
-
tags/1.0.5/vendor/composer/ClassLoader.php (added)
-
tags/1.0.5/vendor/composer/InstalledVersions.php (added)
-
tags/1.0.5/vendor/composer/LICENSE (added)
-
tags/1.0.5/vendor/composer/autoload_classmap.php (added)
-
tags/1.0.5/vendor/composer/autoload_namespaces.php (added)
-
tags/1.0.5/vendor/composer/autoload_psr4.php (added)
-
tags/1.0.5/vendor/composer/autoload_real.php (added)
-
tags/1.0.5/vendor/composer/autoload_static.php (added)
-
tags/1.0.5/vendor/composer/installed.json (added)
-
tags/1.0.5/vendor/composer/installed.php (added)
-
tags/1.0.5/vendor/composer/platform_check.php (added)
-
tags/1.0.5/vendor/firebase (added)
-
tags/1.0.5/vendor/firebase/php-jwt (added)
-
tags/1.0.5/vendor/firebase/php-jwt/LICENSE (added)
-
tags/1.0.5/vendor/firebase/php-jwt/README.md (added)
-
tags/1.0.5/vendor/firebase/php-jwt/composer.json (added)
-
tags/1.0.5/vendor/firebase/php-jwt/src (added)
-
tags/1.0.5/vendor/firebase/php-jwt/src/BeforeValidException.php (added)
-
tags/1.0.5/vendor/firebase/php-jwt/src/ExpiredException.php (added)
-
tags/1.0.5/vendor/firebase/php-jwt/src/JWK.php (added)
-
tags/1.0.5/vendor/firebase/php-jwt/src/JWT.php (added)
-
tags/1.0.5/vendor/firebase/php-jwt/src/Key.php (added)
-
tags/1.0.5/vendor/firebase/php-jwt/src/SignatureInvalidException.php (added)
-
trunk/includes/class-core.php (modified) (2 diffs)
-
trunk/napps.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
napps/trunk/includes/class-core.php
r2703352 r2709643 46 46 } 47 47 48 // If order is not from auth user 48 49 $order = wc_get_order($orderID); 49 50 // If order is not from auth user51 50 if(!$order || $customer != $order->get_customer_id()) { 52 51 wp_redirect(home_url('/napps/order/failed')); … … 56 55 57 56 // Auth current customer based on his jwt token 58 wp_clear_auth_cookie(); 59 wp_set_current_user( $customer ); 60 wp_set_auth_cookie($customer, true, is_ssl()); 57 try { 58 wp_clear_auth_cookie(); 59 wp_set_current_user( $customer ); 60 61 $expiration = time() + apply_filters( 'auth_cookie_expiration', 2 * DAY_IN_SECONDS, $customer, false ); 62 $authCookie = wp_generate_auth_cookie($customer, $expiration, 'logged_in'); 63 setcookie( LOGGED_IN_COOKIE, $authCookie, 0, COOKIEPATH, COOKIE_DOMAIN, true, true ); 64 65 } catch(Exception $e) { 66 wp_redirect(home_url('/napps/order/failed')); 67 exit; 68 } 61 69 62 70 // If we failed to set cookie for napps_mobile ignore -
napps/trunk/napps.php
r2703352 r2709643 3 3 * Plugin Name: NAPPS 4 4 * Description: Plugin to complement the napps E-commerce solution. More on https://napps.pt 5 * Version: 1.0. 45 * Version: 1.0.5 6 6 * Author: NAPPS 7 7 * Author URI: https://napps.pt … … 36 36 define( 'NAPPS_PLUGIN_DIR_URL', plugin_dir_url( __FILE__ ) ); 37 37 define( 'NAPPS_PLUGIN_FILE', __FILE__ ); 38 define( 'NAPPS_VERSION', '1.0. 4' );38 define( 'NAPPS_VERSION', '1.0.5' ); 39 39 define( 'NAPPS_REST_PREFIX', 'napps/v1' ); 40 40 -
napps/trunk/readme.txt
r2703352 r2709643 5 5 Requires at least: 4.7 6 6 Tested up to: 5.8 7 Stable tag: 1.0. 47 Stable tag: 1.0.5 8 8 Requires PHP: 5.6 9 9 License: GPLv2 … … 77 77 == Changelog == 78 78 79 = 1.0.5 = 80 81 * Fix - Order payment auth cookie 82 79 83 = 1.0.4 = 80 84
Note: See TracChangeset
for help on using the changeset viewer.