Version Description
Download this release
Release Info
Developer | storeapps |
Plugin | Temporary Login Without Password |
Version | 1.6.4 |
Comparing to | |
See all releases |
Code changes from version 1.6.3 to 1.6.4
admin/class-wp-temporary-login-without-password-admin.php
CHANGED
@@ -68,6 +68,12 @@ class Wp_Temporary_Login_Without_Password_Admin {
|
|
68 |
*/
|
69 |
public function enqueue_scripts() {
|
70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
if ( $this->is_plugin_page() ) {
|
72 |
|
73 |
if ( ! wp_script_is( $this->plugin_name, 'enqueued' ) ) {
|
@@ -91,7 +97,8 @@ class Wp_Temporary_Login_Without_Password_Admin {
|
|
91 |
}
|
92 |
|
93 |
$data = array(
|
94 |
-
'admin_ajax_url'
|
|
|
95 |
);
|
96 |
|
97 |
wp_localize_script( $this->plugin_name, 'data', $data );
|
@@ -100,6 +107,12 @@ class Wp_Temporary_Login_Without_Password_Admin {
|
|
100 |
|
101 |
if ( ! wp_script_is( 'tlwp-common', 'enqueued' ) ) {
|
102 |
wp_enqueue_script( 'tlwp-common', plugin_dir_url( __FILE__ ) . 'js/common.js', array( 'jquery' ), $this->version, false );
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
}
|
104 |
}
|
105 |
|
68 |
*/
|
69 |
public function enqueue_scripts() {
|
70 |
|
71 |
+
$is_temporary_login = 'no';
|
72 |
+
$current_user_id = get_current_user_id();
|
73 |
+
if ( Wp_Temporary_Login_Without_Password_Common::is_valid_temporary_login( $current_user_id ) ) {
|
74 |
+
$is_temporary_login = 'yes';
|
75 |
+
}
|
76 |
+
|
77 |
if ( $this->is_plugin_page() ) {
|
78 |
|
79 |
if ( ! wp_script_is( $this->plugin_name, 'enqueued' ) ) {
|
97 |
}
|
98 |
|
99 |
$data = array(
|
100 |
+
'admin_ajax_url' => admin_url( 'admin-ajax.php', 'relative' ),
|
101 |
+
'is_temporary_login' => $is_temporary_login,
|
102 |
);
|
103 |
|
104 |
wp_localize_script( $this->plugin_name, 'data', $data );
|
107 |
|
108 |
if ( ! wp_script_is( 'tlwp-common', 'enqueued' ) ) {
|
109 |
wp_enqueue_script( 'tlwp-common', plugin_dir_url( __FILE__ ) . 'js/common.js', array( 'jquery' ), $this->version, false );
|
110 |
+
|
111 |
+
$data = array(
|
112 |
+
'is_temporary_login' => $is_temporary_login
|
113 |
+
);
|
114 |
+
|
115 |
+
wp_localize_script( 'tlwp-common', 'tempData', $data );
|
116 |
}
|
117 |
}
|
118 |
|
admin/js/common.js
CHANGED
@@ -2,10 +2,23 @@
|
|
2 |
'use strict';
|
3 |
|
4 |
$(document).ready(function () {
|
5 |
-
|
6 |
-
if (
|
7 |
-
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
}
|
10 |
});
|
11 |
|
2 |
'use strict';
|
3 |
|
4 |
$(document).ready(function () {
|
5 |
+
|
6 |
+
if (typeof tempData !== 'undefined') {
|
7 |
+
|
8 |
+
if (tempData.hasOwnProperty('is_temporary_login')) {
|
9 |
+
|
10 |
+
var isTemporaryLogin = tempData.is_temporary_login;
|
11 |
+
|
12 |
+
// Disable deactivation checkbox of Temporary Login Without Password plugin
|
13 |
+
// For Temporary Logged in user
|
14 |
+
if (isTemporaryLogin === "yes") {
|
15 |
+
var elem = 'table.plugins tbody#the-list tr[data-slug=temporary-login-without-password] th.check-column input';
|
16 |
+
if ($(elem).get(0)) {
|
17 |
+
$(elem).attr('disabled', true);
|
18 |
+
$(elem).hide();
|
19 |
+
}
|
20 |
+
}
|
21 |
+
}
|
22 |
}
|
23 |
});
|
24 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: storeapps, icegram, niravmehta, malayladu
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BMFRMVXQ87JWA&source=url
|
4 |
Tags: temporary access, developer access, temporary login, passwordless login, secure login
|
5 |
Requires at least: 3.0.1
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 1.6.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -71,7 +71,7 @@ Option 2:
|
|
71 |
|
72 |
= 1. Do I need a username & password to login using Temporary Login? =
|
73 |
|
74 |
-
No. Temporary Login Without Password plugin creates a temporary login link to login
|
75 |
to click on the temporary login link and they will automatically login to WordPress.
|
76 |
|
77 |
= 2. Can I disable Temporary user manually? =
|
@@ -104,6 +104,11 @@ Yes. Many times your support person doesn't speak the same language as you speak
|
|
104 |
|
105 |
== Changelog ==
|
106 |
|
|
|
|
|
|
|
|
|
|
|
107 |
**1.6.3 [2020-06-29]**
|
108 |
|
109 |
* Fix: Upgrade failed notice while upgrading plugins through temporary login
|
@@ -185,7 +190,7 @@ Yes. Many times your support person doesn't speak the same language as you speak
|
|
185 |
|
186 |
**1.5.12 [2018-10-24]**
|
187 |
|
188 |
-
* Fix: Temporary user redirected to admin page even if 'redirect_to' query param present once a user logged in with temporary login link.
|
189 |
|
190 |
**1.5.11 [2018-10-08]**
|
191 |
|
@@ -213,7 +218,7 @@ create a new temporary login.
|
|
213 |
|
214 |
**1.5.6 [2018-03-14]**
|
215 |
|
216 |
-
* Fix: Datepicker doesn't show up when
|
217 |
|
218 |
**1.5.5 [2018-03-05]**
|
219 |
|
@@ -275,7 +280,7 @@ create a new temporary login.
|
|
275 |
|
276 |
* Fix: Temporary user can log in with an email address. Now onwards, the temporary user is not able to login using username/email and password
|
277 |
* Fix: Temporary user was able to reset the password. Now onwards, they won't be able to reset the password.
|
278 |
-
* Update: Now, the role of a temporary user is downgrade to "none" on deactivation of plugin and change to default on the reactivation of plugin
|
279 |
|
280 |
**1.2 [2016-09-01]**
|
281 |
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BMFRMVXQ87JWA&source=url
|
4 |
Tags: temporary access, developer access, temporary login, passwordless login, secure login
|
5 |
Requires at least: 3.0.1
|
6 |
+
Tested up to: 5.5
|
7 |
+
Stable tag: 1.6.4
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
71 |
|
72 |
= 1. Do I need a username & password to login using Temporary Login? =
|
73 |
|
74 |
+
No. Temporary Login Without Password plugin creates a temporary login link to login to WordPress. The user only have
|
75 |
to click on the temporary login link and they will automatically login to WordPress.
|
76 |
|
77 |
= 2. Can I disable Temporary user manually? =
|
104 |
|
105 |
== Changelog ==
|
106 |
|
107 |
+
**1.6.4 [2020-08-17]**
|
108 |
+
|
109 |
+
* Update: Compatibility check with WordPress 5.5
|
110 |
+
* Fix: Deactivation checkbox is disabled for Administrator
|
111 |
+
|
112 |
**1.6.3 [2020-06-29]**
|
113 |
|
114 |
* Fix: Upgrade failed notice while upgrading plugins through temporary login
|
190 |
|
191 |
**1.5.12 [2018-10-24]**
|
192 |
|
193 |
+
* Fix: Temporary user redirected to the admin page even if 'redirect_to' query param present once a user logged in with a temporary login link.
|
194 |
|
195 |
**1.5.11 [2018-10-08]**
|
196 |
|
218 |
|
219 |
**1.5.6 [2018-03-14]**
|
220 |
|
221 |
+
* Fix: Datepicker doesn't show up when editing temporary login and select "custom date" value from expiry time dropdown
|
222 |
|
223 |
**1.5.5 [2018-03-05]**
|
224 |
|
280 |
|
281 |
* Fix: Temporary user can log in with an email address. Now onwards, the temporary user is not able to login using username/email and password
|
282 |
* Fix: Temporary user was able to reset the password. Now onwards, they won't be able to reset the password.
|
283 |
+
* Update: Now, the role of a temporary user is a downgrade to "none" on deactivation of plugin and change to default on the reactivation of plugin
|
284 |
|
285 |
**1.2 [2016-09-01]**
|
286 |
|
temporary-login-without-password.php
CHANGED
@@ -3,11 +3,11 @@
|
|
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.6.
|
7 |
* Author: StoreApps
|
8 |
* Author URI: https://storeapps.org
|
9 |
* Requires at least: 3.0.1
|
10 |
-
* Tested up to: 5.
|
11 |
* License: GPLv3
|
12 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
13 |
* Text Domain: temporary-login-without-password
|
@@ -25,7 +25,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
25 |
/**
|
26 |
* Define constants
|
27 |
*/
|
28 |
-
define( 'WTLWP_PLUGIN_VERSION', '1.6.
|
29 |
define( 'WTLWP_FEEDBACK_VERSION', '1.2.1' );
|
30 |
define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
|
31 |
define( 'WTLWP_PLUGIN_BASE_NAME', plugin_basename( __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.6.4
|
7 |
* Author: StoreApps
|
8 |
* Author URI: https://storeapps.org
|
9 |
* Requires at least: 3.0.1
|
10 |
+
* Tested up to: 5.5
|
11 |
* License: GPLv3
|
12 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
13 |
* Text Domain: temporary-login-without-password
|
25 |
/**
|
26 |
* Define constants
|
27 |
*/
|
28 |
+
define( 'WTLWP_PLUGIN_VERSION', '1.6.4' );
|
29 |
define( 'WTLWP_FEEDBACK_VERSION', '1.2.1' );
|
30 |
define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
|
31 |
define( 'WTLWP_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );
|