Changeset 1766762
- Timestamp:
- 11/15/2017 08:01:19 AM (8 years ago)
- Location:
- unloq/trunk
- Files:
-
- 3 edited
-
autoloader/admin/class-admin.php (modified) (7 diffs)
-
readme.txt (modified) (1 diff)
-
unloq.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
unloq/trunk/autoloader/admin/class-admin.php
r1765673 r1766762 690 690 $errors = __('Please enter a valid email', 'unloq'); 691 691 } 692 $applicationName = get_bloginfo('name'); 693 if(!isset($applicationName) || $applicationName == '') { 694 $applicationName = 'WP Site'; 695 } 692 696 if ($errors === false) { 693 697 $remote = wp_remote_post(self::$API_url . '/connect', array( … … 697 701 'body' => json_encode(array( 698 702 'url' => get_bloginfo('url'), 699 'application_name' => get_bloginfo('name') || 'WP Site',703 'application_name' => $applicationName, 700 704 'site_email' => $c_user->user_email, 701 705 'unloq_email' => $email, … … 747 751 $errors = __('Please enter a valid email', 'unloq'); 748 752 } 749 753 $applicationName = get_bloginfo('name'); 754 if(!isset($applicationName) || $applicationName == '') { 755 $applicationName = 'WP Site'; 756 } 750 757 $remote = wp_remote_post(self::$API_url . '/verify', array( 751 758 'headers' => array( … … 754 761 'body' => json_encode(array( 755 762 'url' => get_bloginfo('url'), 756 'application_name' => get_bloginfo('name') || 'WP Site',763 'application_name' => $applicationName, 757 764 'site_email' => $c_user->user_email, 758 765 'unloq_email' => $email, … … 846 853 847 854 $errors = false; 848 $application_name = $this->utility->rgar($_POST, 'application_name' ) || 'WP Site';855 $application_name = $this->utility->rgar($_POST, 'application_name', 'WP Site'); 849 856 $push_message = $this->utility->rgar($_POST, 'push_message'); 850 857 $authentication_message = $this->utility->rgar($_POST, 'authentication_message'); … … 855 862 ), 856 863 'body' => json_encode(array( 857 'application_name' => $application_name || 'WP Site',864 'application_name' => $application_name, 858 865 'push_message' => $push_message, 859 866 'authentication_message' => $authentication_message … … 868 875 } else { 869 876 $store_data = $this->utility->wp_option('update', 'unloq_settings', array_merge($this->settings, array( 870 'application_name' => $application_name || 'WP Site',877 'application_name' => $application_name, 871 878 'push_message' => $push_message, 872 879 'authentication_message' => $authentication_message -
unloq/trunk/readme.txt
r1765675 r1766762 119 119 120 120 == Changelog == 121 = 2.1.17 = 122 * Fixed an issue where the application name was not correctly sent 121 123 = 2.1.16 = 122 124 * Login redirect filter now uses the default "login_redirect" -
unloq/trunk/unloq.php
r1765675 r1766762 3 3 * Plugin Name: UNLOQ Authentication 4 4 * Description: Perform UNLOQ.io authentications with the click of a button 5 * Version: 2.1.1 65 * Version: 2.1.17 6 6 * Author: UNLOQ.io 7 7 * Author URI: https://unloq.io … … 18 18 19 19 define('UQ_PLUGIN', 'unloq'); 20 define('UQ_VERSION', '2.1.1 6');20 define('UQ_VERSION', '2.1.17'); 21 21 define('UQ_VENDORS', plugin_dir_url(__FILE__) . 'vendors'); 22 22 define('UQ_VENDORS_DIR', plugin_dir_path(__FILE__) . 'vendors');
Note: See TracChangeset
for help on using the changeset viewer.