Version Description
Download this release
Release Info
Developer | storeapps |
Plugin | Temporary Login Without Password |
Version | 1.5.23 |
Comparing to | |
See all releases |
Code changes from version 1.5.22 to 1.5.23
admin/class-wp-temporary-login-without-password-admin.php
CHANGED
@@ -144,7 +144,7 @@ class Wp_Temporary_Login_Without_Password_Admin {
|
|
144 |
|
145 |
$active_tab = ! empty( $_GET['tab'] ) ? $_GET['tab'] : 'home';
|
146 |
$_template_file = WTLWP_PLUGIN_DIR . '/templates/admin-settings.php';
|
147 |
-
$wtlwp_generated_url = ! empty( $_REQUEST['wtlwp_generated_url'] ) ? $_REQUEST['wtlwp_generated_url'] : '';
|
148 |
$user_email = ! empty( $_REQUEST['user_email'] ) ? sanitize_email( $_REQUEST['user_email'] ) : '';
|
149 |
$tlwp_settings = maybe_unserialize( get_option( 'tlwp_settings', array() ) );
|
150 |
$action = ! empty( $_GET['action'] ) ? $_GET['action'] : '';
|
@@ -161,12 +161,6 @@ class Wp_Temporary_Login_Without_Password_Admin {
|
|
161 |
$active_tab = ! empty( $_GET['tab'] ) ? $_GET['tab'] : ( $is_temporary_login ? 'system-info' : 'home' );
|
162 |
|
163 |
if ( ! $is_temporary_login ) {
|
164 |
-
$wtlwp_generated_url = ! empty( $_REQUEST['wtlwp_generated_url'] ) ? $_REQUEST['wtlwp_generated_url'] : '';
|
165 |
-
$user_email = ! empty( $_REQUEST['user_email'] ) ? sanitize_email( $_REQUEST['user_email'] ) : '';
|
166 |
-
$tlwp_settings = maybe_unserialize( get_option( 'tlwp_settings', array() ) );
|
167 |
-
$action = ! empty( $_GET['action'] ) ? $_GET['action'] : '';
|
168 |
-
$user_id = ! empty( $_GET['user_id'] ) ? $_GET['user_id'] : '';
|
169 |
-
$do_update = ( 'update' === $action ) ? 1 : 0;
|
170 |
|
171 |
if ( ! empty( $user_id ) ) {
|
172 |
$temporary_user_data = Wp_Temporary_Login_Without_Password_Common::get_temporary_logins_data( $user_id );
|
@@ -179,8 +173,6 @@ class Wp_Temporary_Login_Without_Password_Admin {
|
|
179 |
if ( ! empty( $wtlwp_generated_url ) ) {
|
180 |
$mailto_link = Wp_Temporary_Login_Without_Password_Common::generate_mailto_link( $user_email, $wtlwp_generated_url );
|
181 |
}
|
182 |
-
|
183 |
-
|
184 |
}
|
185 |
|
186 |
include $_template_file;
|
@@ -236,8 +228,12 @@ class Wp_Temporary_Login_Without_Password_Admin {
|
|
236 |
|
237 |
$user_id = isset( $user['user_id'] ) ? $user['user_id'] : 0;
|
238 |
$redirect_link = Wp_Temporary_Login_Without_Password_Common::get_redirect_link( $result );
|
239 |
-
|
240 |
$redirect_link = add_query_arg( 'user_email', $email, $redirect_link );
|
|
|
|
|
|
|
|
|
241 |
}
|
242 |
}
|
243 |
|
144 |
|
145 |
$active_tab = ! empty( $_GET['tab'] ) ? $_GET['tab'] : 'home';
|
146 |
$_template_file = WTLWP_PLUGIN_DIR . '/templates/admin-settings.php';
|
147 |
+
$wtlwp_generated_url = ! empty( $_REQUEST['wtlwp_generated_url'] ) ? urldecode( $_REQUEST['wtlwp_generated_url'] ) : '';
|
148 |
$user_email = ! empty( $_REQUEST['user_email'] ) ? sanitize_email( $_REQUEST['user_email'] ) : '';
|
149 |
$tlwp_settings = maybe_unserialize( get_option( 'tlwp_settings', array() ) );
|
150 |
$action = ! empty( $_GET['action'] ) ? $_GET['action'] : '';
|
161 |
$active_tab = ! empty( $_GET['tab'] ) ? $_GET['tab'] : ( $is_temporary_login ? 'system-info' : 'home' );
|
162 |
|
163 |
if ( ! $is_temporary_login ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
|
165 |
if ( ! empty( $user_id ) ) {
|
166 |
$temporary_user_data = Wp_Temporary_Login_Without_Password_Common::get_temporary_logins_data( $user_id );
|
173 |
if ( ! empty( $wtlwp_generated_url ) ) {
|
174 |
$mailto_link = Wp_Temporary_Login_Without_Password_Common::generate_mailto_link( $user_email, $wtlwp_generated_url );
|
175 |
}
|
|
|
|
|
176 |
}
|
177 |
|
178 |
include $_template_file;
|
228 |
|
229 |
$user_id = isset( $user['user_id'] ) ? $user['user_id'] : 0;
|
230 |
$redirect_link = Wp_Temporary_Login_Without_Password_Common::get_redirect_link( $result );
|
231 |
+
|
232 |
$redirect_link = add_query_arg( 'user_email', $email, $redirect_link );
|
233 |
+
|
234 |
+
$wtlwp_generated_url = urlencode( Wp_Temporary_Login_Without_Password_Common::get_login_url( $user_id ) );
|
235 |
+
|
236 |
+
$redirect_link = add_query_arg( 'wtlwp_generated_url', $wtlwp_generated_url, $redirect_link );
|
237 |
}
|
238 |
}
|
239 |
|
includes/class-wp-temporary-login-without-password-common.php
CHANGED
@@ -885,15 +885,14 @@ class Wp_Temporary_Login_Without_Password_Common {
|
|
885 |
*/
|
886 |
public static function generate_mailto_link( $email, $temporary_login_link ) {
|
887 |
|
888 |
-
$
|
889 |
-
$
|
890 |
-
$
|
891 |
-
$
|
892 |
-
$
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
return $mailto_link;
|
897 |
}
|
898 |
|
899 |
/**
|
885 |
*/
|
886 |
public static function generate_mailto_link( $email, $temporary_login_link ) {
|
887 |
|
888 |
+
$temporary_login_link = urlencode( $temporary_login_link );
|
889 |
+
$double_line_break = '%0D%0A%0D%0A'; // as per RFC2368
|
890 |
+
$mailto_greeting = __( 'Hello,', 'temporary-login-without-password' );
|
891 |
+
$mailto_instruction = __( 'Click the following link to log into the system:', 'temporary-login-without-password' );
|
892 |
+
$mailto_subject = __( 'Temporary Login Link', 'temporary-login-without-password' );
|
893 |
+
$mailto_body = "$mailto_greeting $double_line_break $mailto_instruction $double_line_break $temporary_login_link $double_line_break";
|
894 |
+
|
895 |
+
return __( sprintf( "mailto:%s?subject=%s&body=%s", $email, $mailto_subject, $mailto_body ), 'temporary-login-without-password' );
|
|
|
896 |
}
|
897 |
|
898 |
/**
|
includes/feedback/class-ig-feedback.php
CHANGED
@@ -4,21 +4,21 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
4 |
exit; // Exit if accessed directly.
|
5 |
}
|
6 |
|
7 |
-
if ( ! class_exists( '
|
8 |
/**
|
9 |
* IG Feedback
|
10 |
*
|
11 |
* The IG Feedback class adds functionality to get quick interactive feedback from users.
|
12 |
* There are different types of feedabck widget like Stars, Emoji, Thubms Up/ Down, Number etc.
|
13 |
*
|
14 |
-
* @class
|
15 |
* @since 1.0.0
|
16 |
* @copyright Copyright (c) 2019, Icegram
|
17 |
* @license https://opensource.org/licenses/gpl-license GNU Public License
|
18 |
* @author Icegram
|
19 |
* @package feedback
|
20 |
*/
|
21 |
-
class
|
22 |
|
23 |
/**
|
24 |
* Version of Feedback Library
|
@@ -27,7 +27,7 @@ if ( ! class_exists( 'IG_Feedback_V_1_0_15' ) ) {
|
|
27 |
* @var string
|
28 |
*
|
29 |
*/
|
30 |
-
public $version = '1.0.
|
31 |
/**
|
32 |
* The API URL where we will send feedback data.
|
33 |
*
|
@@ -1442,9 +1442,10 @@ if ( ! class_exists( 'IG_Feedback_V_1_0_15' ) ) {
|
|
1442 |
unset( $data['misc'] );
|
1443 |
|
1444 |
$default_meta_info = array(
|
1445 |
-
'plugin'
|
1446 |
-
'locale'
|
1447 |
-
'wp_version'
|
|
|
1448 |
);
|
1449 |
|
1450 |
$meta_info = wp_parse_args( $meta_info, $default_meta_info );
|
4 |
exit; // Exit if accessed directly.
|
5 |
}
|
6 |
|
7 |
+
if ( ! class_exists( 'IG_Feedback_V_1_0_16' ) ) {
|
8 |
/**
|
9 |
* IG Feedback
|
10 |
*
|
11 |
* The IG Feedback class adds functionality to get quick interactive feedback from users.
|
12 |
* There are different types of feedabck widget like Stars, Emoji, Thubms Up/ Down, Number etc.
|
13 |
*
|
14 |
+
* @class IG_Feedback_V_1_0_16
|
15 |
* @since 1.0.0
|
16 |
* @copyright Copyright (c) 2019, Icegram
|
17 |
* @license https://opensource.org/licenses/gpl-license GNU Public License
|
18 |
* @author Icegram
|
19 |
* @package feedback
|
20 |
*/
|
21 |
+
class IG_Feedback_V_1_0_16 {
|
22 |
|
23 |
/**
|
24 |
* Version of Feedback Library
|
27 |
* @var string
|
28 |
*
|
29 |
*/
|
30 |
+
public $version = '1.0.16';
|
31 |
/**
|
32 |
* The API URL where we will send feedback data.
|
33 |
*
|
1442 |
unset( $data['misc'] );
|
1443 |
|
1444 |
$default_meta_info = array(
|
1445 |
+
'plugin' => sanitize_key( $plugin ),
|
1446 |
+
'locale' => get_locale(),
|
1447 |
+
'wp_version' => get_bloginfo( 'version' ),
|
1448 |
+
'php_version' => PHP_VERSION
|
1449 |
);
|
1450 |
|
1451 |
$meta_info = wp_parse_args( $meta_info, $default_meta_info );
|
includes/feedback/class-ig-tracker.php
CHANGED
@@ -4,15 +4,15 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
4 |
exit; // Exit if accessed directly.
|
5 |
}
|
6 |
|
7 |
-
if ( ! class_exists( '
|
8 |
|
9 |
/**
|
10 |
-
* Class
|
11 |
*
|
12 |
* Icegram tracker handler class is responsible for sending anonymous plugin
|
13 |
* data to Icegram servers for users that actively allowed data tracking.
|
14 |
*
|
15 |
-
* @class
|
16 |
* @since 1.0.0
|
17 |
*
|
18 |
* @copyright Copyright (c) 2019, Icegram
|
@@ -20,7 +20,7 @@ if ( ! class_exists( 'IG_Tracker_V_1_0_15' ) ) {
|
|
20 |
* @author Icegram
|
21 |
* @package feedback
|
22 |
*/
|
23 |
-
class
|
24 |
|
25 |
/**
|
26 |
* Get Active, Inactive or all plugins info
|
4 |
exit; // Exit if accessed directly.
|
5 |
}
|
6 |
|
7 |
+
if ( ! class_exists( 'IG_Tracker_V_1_0_16' ) ) {
|
8 |
|
9 |
/**
|
10 |
+
* Class IG_Tracker_V_1_0_16
|
11 |
*
|
12 |
* Icegram tracker handler class is responsible for sending anonymous plugin
|
13 |
* data to Icegram servers for users that actively allowed data tracking.
|
14 |
*
|
15 |
+
* @class IG_Tracker_V_1_0_16
|
16 |
* @since 1.0.0
|
17 |
*
|
18 |
* @copyright Copyright (c) 2019, Icegram
|
20 |
* @author Icegram
|
21 |
* @package feedback
|
22 |
*/
|
23 |
+
class IG_Tracker_V_1_0_16 {
|
24 |
|
25 |
/**
|
26 |
* Get Active, Inactive or all plugins info
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: temporary access, developer access, admin login, temporary login, passwordless login, customer login, secure login, access, admin, log in, login, login security, protection, user login, user login, wordpress admin login, wordpress login, wp-admin, wp-login, expiration, login, Login Without Password, user, WordPress Admin, wp-admin, developer login
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 5.3.2
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -78,6 +78,9 @@ No. at this moment it's not possible to do this.
|
|
78 |
|
79 |
== Changelog ==
|
80 |
|
|
|
|
|
|
|
81 |
**1.5.22 [2019-12-23]**
|
82 |
* Update: Compatibility test with WordPress 5.3.2
|
83 |
|
4 |
Tags: temporary access, developer access, admin login, temporary login, passwordless login, customer login, secure login, access, admin, log in, login, login security, protection, user login, user login, wordpress admin login, wordpress login, wp-admin, wp-login, expiration, login, Login Without Password, user, WordPress Admin, wp-admin, developer login
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 5.3.2
|
7 |
+
Stable tag: 1.5.23
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
78 |
|
79 |
== Changelog ==
|
80 |
|
81 |
+
**1.5.23 [2020-01-14]**
|
82 |
+
* Fix: Incorrect temporary Login URL shows up while using iThemes Security plugin with Custom URL Login enabled
|
83 |
+
|
84 |
**1.5.22 [2019-12-23]**
|
85 |
* Update: Compatibility test with WordPress 5.3.2
|
86 |
|
temporary-login-without-password.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Temporary Login Without Password
|
4 |
* Plugin URI: http://www.storeapps.org/create-secure-login-without-password-for-wordpress/
|
5 |
* Description: Create a temporary login link with any role using which one can access to your sytem without username and password for limited period of time.
|
6 |
-
* Version: 1.5.
|
7 |
* Author: StoreApps
|
8 |
* Author URI: https://storeapps.org
|
9 |
* Requires at least: 3.0.1
|
@@ -12,7 +12,7 @@
|
|
12 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
13 |
* Text Domain: temporary-login-without-password
|
14 |
* Domain Path: /languages/
|
15 |
-
* Copyright (c) 2016-
|
16 |
*
|
17 |
* @package Temporary Login Without Password
|
18 |
*/
|
@@ -25,8 +25,8 @@ if ( ! defined( 'WPINC' ) ) {
|
|
25 |
/**
|
26 |
* Define constants
|
27 |
*/
|
28 |
-
define( 'WTLWP_PLUGIN_VERSION', '1.5.
|
29 |
-
define( 'WTLWP_FEEDBACK_VERSION', '1.0.
|
30 |
define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
|
31 |
define( 'WTLWP_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );
|
32 |
define( 'WTLWP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
3 |
* Plugin Name: Temporary Login Without Password
|
4 |
* Plugin URI: http://www.storeapps.org/create-secure-login-without-password-for-wordpress/
|
5 |
* Description: Create a temporary login link with any role using which one can access to your sytem without username and password for limited period of time.
|
6 |
+
* Version: 1.5.23
|
7 |
* Author: StoreApps
|
8 |
* Author URI: https://storeapps.org
|
9 |
* Requires at least: 3.0.1
|
12 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
13 |
* Text Domain: temporary-login-without-password
|
14 |
* Domain Path: /languages/
|
15 |
+
* Copyright (c) 2016-2020 StoreApps, All right reserved
|
16 |
*
|
17 |
* @package Temporary Login Without Password
|
18 |
*/
|
25 |
/**
|
26 |
* Define constants
|
27 |
*/
|
28 |
+
define( 'WTLWP_PLUGIN_VERSION', '1.5.23' );
|
29 |
+
define( 'WTLWP_FEEDBACK_VERSION', '1.0.16' );
|
30 |
define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
|
31 |
define( 'WTLWP_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );
|
32 |
define( 'WTLWP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|