Temporary Login Without Password - Version 1.5.6

Version Description

Download this release

Release Info

Developer storeapps
Plugin Icon 128x128 Temporary Login Without Password
Version 1.5.6
Comparing to
See all releases

Code changes from version 1.5.5 to 1.5.6

admin/class-wp-temporary-login-without-password-admin.php CHANGED
@@ -117,7 +117,7 @@ class Wp_Temporary_Login_Without_Password_Admin {
117
  public function create_user() {
118
 
119
 
120
- if ( empty( $_POST['wtlwp_data'] ) || empty( $_POST['wtlwp-nonce'] ) || ( ! empty( $_POST['wtlwp_action'] ) && $_POST['wtlwp_action'] === 'update' ) ) {
121
  return;
122
  }
123
 
@@ -460,7 +460,7 @@ class Wp_Temporary_Login_Without_Password_Admin {
460
 
461
  $current_screen = get_current_screen();
462
 
463
- if ( isset( $current_screen->id ) && $current_screen->id == 'users_page_wp-temporary-login-without-password' ) {
464
 
465
  $can_ask_for_review = self::can_ask_for_review();
466
 
117
  public function create_user() {
118
 
119
 
120
+ if ( empty( $_POST['wtlwp_data'] ) || empty( $_POST['wtlwp-nonce'] ) || ( ! empty( $_POST['wtlwp_action'] ) && 'update' === $_POST['wtlwp_action'] ) ) {
121
  return;
122
  }
123
 
460
 
461
  $current_screen = get_current_screen();
462
 
463
+ if ( isset( $current_screen->id ) && 'users_page_wp-temporary-login-without-password' === $current_screen->id ) {
464
 
465
  $can_ask_for_review = self::can_ask_for_review();
466
 
admin/js/wp-temporary-login-without-password-admin.js CHANGED
@@ -40,20 +40,14 @@
40
  });
41
  }
42
 
43
- jQuery('#user-expiry-time').change(function () {
44
-
45
  var value = jQuery(this).val();
46
- if (value === 'custom_date') {
47
- var tomorrowDate = new Date(new Date().getTime() + 24 * 60 * 60 * 1000);
48
- jQuery('.example-datepicker').datepicker({
49
- dateFormat: 'yy-mm-dd',
50
- minDate: tomorrowDate
51
- });
52
- jQuery('#custom-date-picker').show();
53
- } else {
54
- jQuery('#custom-date-picker').hide();
55
- }
56
 
 
 
 
57
  });
58
 
59
  jQuery('a.tlwp-rating-link').click(function () {
@@ -66,6 +60,30 @@
66
  jQuery(this).parent().text(jQuery(this).data('rated'));
67
  });
68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  });
70
 
71
  })(jQuery);
40
  });
41
  }
42
 
43
+ jQuery('#new-user-expiry-time').change(function () {
 
44
  var value = jQuery(this).val();
45
+ showDatePicker(value, 'new');
46
+ });
 
 
 
 
 
 
 
 
47
 
48
+ jQuery('#update-user-expiry-time').change(function () {
49
+ var value = jQuery(this).val();
50
+ showDatePicker(value, 'update');
51
  });
52
 
53
  jQuery('a.tlwp-rating-link').click(function () {
60
  jQuery(this).parent().text(jQuery(this).data('rated'));
61
  });
62
 
63
+ function showDatePicker(value, datePickerClass) {
64
+
65
+ var customDatePickerClass = '';
66
+ var customDatePickerID = '';
67
+ if( 'new' === datePickerClass ) {
68
+ customDatePickerClass = '.new-custom-date-picker';
69
+ customDatePickerID = '#new-custom-date-picker';
70
+ } else {
71
+ customDatePickerClass = '.update-custom-date-picker';
72
+ customDatePickerID = '#update-custom-date-picker';
73
+ }
74
+
75
+ if (value === 'custom_date') {
76
+ var tomorrowDate = new Date(new Date().getTime() + 24 * 60 * 60 * 1000);
77
+ jQuery(customDatePickerClass).datepicker({
78
+ dateFormat: 'yy-mm-dd',
79
+ minDate: tomorrowDate
80
+ });
81
+ jQuery(customDatePickerID).show();
82
+ } else {
83
+ jQuery(customDatePickerID).hide();
84
+ }
85
+ }
86
+
87
  });
88
 
89
  })(jQuery);
includes/class-wp-temporary-login-without-password-common.php CHANGED
@@ -79,7 +79,7 @@ class Wp_Temporary_Login_Without_Password_Common {
79
  );
80
  }
81
 
82
- if ( is_multisite() && ! empty( $data['super_admin'] ) && $data['super_admin'] === 'on' ) {
83
  grant_super_admin( $user_id );
84
  }
85
 
@@ -133,7 +133,7 @@ class Wp_Temporary_Login_Without_Password_Common {
133
  }
134
 
135
 
136
- if ( is_multisite() && ! empty( $data['super_admin'] ) && $data['super_admin'] === 'on' ) {
137
  grant_super_admin( $user_id );
138
  }
139
 
@@ -308,9 +308,9 @@ class Wp_Temporary_Login_Without_Password_Common {
308
  public static function format_date_display( $stamp = 0, $type = 'date_format' ) {
309
 
310
  $type_format = 'date_format';
311
- if ( $type == 'date_format' ) {
312
  $type_format = get_option( 'date_format' );
313
- } elseif ( $type == 'time_format' ) {
314
  $type_format = get_option( 'time_format' );
315
  }
316
 
@@ -351,9 +351,9 @@ class Wp_Temporary_Login_Without_Password_Common {
351
 
352
  $query_string = '';
353
  if ( ! empty( $result['status'] ) ) {
354
- if ( $result['status'] == 'success' ) {
355
  $query_string .= '&wtlwp_success=1';
356
- } elseif ( $result['status'] == 'error' ) {
357
  $query_string .= '&wtlwp_error=1';
358
  }
359
  }
@@ -598,9 +598,9 @@ class Wp_Temporary_Login_Without_Password_Common {
598
  }
599
 
600
  $manage_login = false;
601
- if ( $action == 'disable' ) {
602
  $manage_login = update_user_meta( $user_id, '_wtlwp_expire', self::get_current_gmt_timestamp() );
603
- } elseif ( $action == 'enable' ) {
604
  $manage_login = update_user_meta( $user_id, '_wtlwp_expire', self::get_user_expire_time() );
605
  }
606
 
@@ -794,13 +794,13 @@ class Wp_Temporary_Login_Without_Password_Common {
794
  * NOTE: When edit tmeporary user - there may be a case where $selected role is not available in viisible roles
795
  * If so, add $selected role into $visible_roles array
796
  */
797
- if(!in_array($selected, $visible_roles)) {
798
  $visible_roles[] = $selected;
799
  }
800
 
801
  foreach ( $editable_roles as $role => $details ) {
802
 
803
- if ( in_array( $role, $visible_roles )) {
804
  $name = translate_user_role( $details['name'] );
805
  // preselect specified role
806
  if ( $selected == $role ) {
79
  );
80
  }
81
 
82
+ if ( is_multisite() && ! empty( $data['super_admin'] ) && 'on' === $data['super_admin'] ) {
83
  grant_super_admin( $user_id );
84
  }
85
 
133
  }
134
 
135
 
136
+ if ( is_multisite() && ! empty( $data['super_admin'] ) && 'on' === $data['super_admin'] ) {
137
  grant_super_admin( $user_id );
138
  }
139
 
308
  public static function format_date_display( $stamp = 0, $type = 'date_format' ) {
309
 
310
  $type_format = 'date_format';
311
+ if ( 'date_format' === $type ) {
312
  $type_format = get_option( 'date_format' );
313
+ } elseif ( 'time_format' === $type ) {
314
  $type_format = get_option( 'time_format' );
315
  }
316
 
351
 
352
  $query_string = '';
353
  if ( ! empty( $result['status'] ) ) {
354
+ if ( 'success' === $result['status'] ) {
355
  $query_string .= '&wtlwp_success=1';
356
+ } elseif ( 'error' === $result['status'] ) {
357
  $query_string .= '&wtlwp_error=1';
358
  }
359
  }
598
  }
599
 
600
  $manage_login = false;
601
+ if ( 'disable' === $action ) {
602
  $manage_login = update_user_meta( $user_id, '_wtlwp_expire', self::get_current_gmt_timestamp() );
603
+ } elseif ( 'enable' === $action ) {
604
  $manage_login = update_user_meta( $user_id, '_wtlwp_expire', self::get_user_expire_time() );
605
  }
606
 
794
  * NOTE: When edit tmeporary user - there may be a case where $selected role is not available in viisible roles
795
  * If so, add $selected role into $visible_roles array
796
  */
797
+ if ( ! in_array( $selected, $visible_roles ) ) {
798
  $visible_roles[] = $selected;
799
  }
800
 
801
  foreach ( $editable_roles as $role => $details ) {
802
 
803
+ if ( in_array( $role, $visible_roles ) ) {
804
  $name = translate_user_role( $details['name'] );
805
  // preselect specified role
806
  if ( $selected == $role ) {
includes/class-wp-temporary-login-without-password-layout.php CHANGED
@@ -135,9 +135,9 @@ class Wp_Temporary_Login_Without_Password_Layout {
135
  $disable_login_url = Wp_Temporary_Login_Without_Password_Common::get_manage_login_url( $user_id, 'disable' );
136
  $enable_login_url = Wp_Temporary_Login_Without_Password_Common::get_manage_login_url( $user_id, 'enable' );
137
 
138
- if ( strtolower( $wtlwp_status ) == 'expired' ) {
139
  $action_row .= '<span class="enable"><a title="' . __( 'Reactivate for one day', 'temporary-login-without-password' ) . '" href="' . $enable_login_url . '"><span class="dashicons dashicons-lock"></a></span></span>';
140
- } elseif ( strtolower( $wtlwp_status ) == 'active' ) {
141
  $action_row .= '<span class="disable"><a title="' . __( 'Disable', 'temporary-login-without-password' ) . '" href="' . $disable_login_url . '"><span class="dashicons dashicons-unlock"></span></a></span>';
142
  }
143
 
135
  $disable_login_url = Wp_Temporary_Login_Without_Password_Common::get_manage_login_url( $user_id, 'disable' );
136
  $enable_login_url = Wp_Temporary_Login_Without_Password_Common::get_manage_login_url( $user_id, 'enable' );
137
 
138
+ if ( 'expired' === strtolower( $wtlwp_status ) ) {
139
  $action_row .= '<span class="enable"><a title="' . __( 'Reactivate for one day', 'temporary-login-without-password' ) . '" href="' . $enable_login_url . '"><span class="dashicons dashicons-lock"></a></span></span>';
140
+ } elseif ( 'active' === strtolower( $wtlwp_status ) ) {
141
  $action_row .= '<span class="disable"><a title="' . __( 'Disable', 'temporary-login-without-password' ) . '" href="' . $disable_login_url . '"><span class="dashicons dashicons-unlock"></span></a></span>';
142
  }
143
 
public/class-wp-temporary-login-without-password-public.php CHANGED
@@ -69,7 +69,7 @@ class Wp_Temporary_Login_Without_Password_Public {
69
  $bloked_pages = Wp_Temporary_Login_Without_Password_Common::get_blocked_pages();
70
  $page = ! empty( $_GET['page'] ) ? $_GET['page'] : '';
71
 
72
- if ( ! empty( $page ) && in_array( $page, $bloked_pages ) || ( ! empty( $pagenow ) && ( in_array( $pagenow, $bloked_pages ) ) ) || ( ! empty( $pagenow ) && ( $pagenow === 'users.php' && isset( $_GET['action'] ) && ( $_GET['action'] === 'deleteuser' || $_GET['action'] === 'delete' ) ) ) ) {
73
  wp_die( __( "You don't have permission to access this page", 'temporary-login-without-password' ) );
74
  }
75
  }
@@ -81,7 +81,7 @@ class Wp_Temporary_Login_Without_Password_Public {
81
  * Hooked to wp_authenticate_user filter to disable login for temporary user using username/email and password
82
  *
83
  * @param WP_User $user
84
- * @param string $password
85
  *
86
  * @return \WP_Error
87
  */
@@ -104,7 +104,7 @@ class Wp_Temporary_Login_Without_Password_Public {
104
  * Hooked to allow_password_reset filter to disable reset password for temporary user
105
  *
106
  * @param boolean $allow
107
- * @param int $user_id
108
  *
109
  * @return boolean
110
  */
69
  $bloked_pages = Wp_Temporary_Login_Without_Password_Common::get_blocked_pages();
70
  $page = ! empty( $_GET['page'] ) ? $_GET['page'] : '';
71
 
72
+ if ( ! empty( $page ) && in_array( $page, $bloked_pages ) || ( ! empty( $pagenow ) && ( in_array( $pagenow, $bloked_pages ) ) ) || ( ! empty( $pagenow ) && ( 'users.php' === $pagenow && isset( $_GET['action'] ) && ( 'deleteuser' === $_GET['action'] || 'delete' === $_GET['action'] ) ) ) ) {
73
  wp_die( __( "You don't have permission to access this page", 'temporary-login-without-password' ) );
74
  }
75
  }
81
  * Hooked to wp_authenticate_user filter to disable login for temporary user using username/email and password
82
  *
83
  * @param WP_User $user
84
+ * @param string $password
85
  *
86
  * @return \WP_Error
87
  */
104
  * Hooked to allow_password_reset filter to disable reset password for temporary user
105
  *
106
  * @param boolean $allow
107
+ * @param int $user_id
108
  *
109
  * @return boolean
110
  */
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Temporary Login Without Password ===
2
  Contributors: storeapps, niravmehta, malayladu
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CPTHCDC382KVA
4
- Tags: admin login, developer account, customer access, temporary login, password less 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: 4.9.4
7
- Stable tag: 1.5.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -37,12 +37,17 @@ If you like Temporary Login Without Password, please leave a five star review on
37
 
38
  == Screenshots ==
39
 
40
- 1. Create a new temporary login.
41
- 2. List of all (Active/Expired) temporary logins.
42
  3. Temporary Login settings panel.
 
43
 
44
  == Changelog ==
45
 
 
 
 
 
46
  **1.5.5 [03-05-2018]**
47
 
48
  * Updated: Set default expiry time as a "Week" for new temporary login instead of an "Hour".
1
  === Temporary Login Without Password ===
2
  Contributors: storeapps, niravmehta, malayladu
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CPTHCDC382KVA
4
+ Tags: admin login, developer account, customer access, 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: 4.9.4
7
+ Stable tag: 1.5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
37
 
38
  == Screenshots ==
39
 
40
+ 1. Create a new Temporary Login.
41
+ 2. List of all (Active/Expired) Temporary Logins.
42
  3. Temporary Login settings panel.
43
+ 4. Update Temporary Login
44
 
45
  == Changelog ==
46
 
47
+ **1.5.6 [03-14-2018]**
48
+
49
+ * Fixed: Datepicker doesn't show up when edit temporary login and select "custom date" value from expiry time dropdown
50
+
51
  **1.5.5 [03-05-2018]**
52
 
53
  * Updated: Set default expiry time as a "Week" for new temporary login instead of an "Hour".
templates/admin_settings.php CHANGED
@@ -1,67 +1,67 @@
1
  <?php ?>
2
  <h2 class="nav-tab-wrapper">
3
- <a href="<?php echo admin_url( 'users.php?page=wp-temporary-login-without-password&tab=home' ); ?>"
4
- class="nav-tab <?php echo $active_tab == 'home' ? 'nav-tab-active' : ''; ?>">Temporary Logins</a>
5
- <a href="<?php echo admin_url( 'users.php?page=wp-temporary-login-without-password&tab=settings' ); ?>"
6
- class="nav-tab <?php echo $active_tab == 'settings' ? 'nav-tab-active' : ''; ?>">Settings</a>
7
  </h2>
8
 
9
 
10
- <?php if ( $active_tab == 'home' ) { ?>
11
- <div class="wrap wtlwp-settings-wrap" id="temporary-logins">
12
- <h2>
13
- <?php echo __( 'Temporary Logins', 'temporary-login-without-password' ); ?>
14
  <span class="page-title-action" id="add-new-wtlwp-form-button"><?php _e( 'Create New', 'temporary-login-without-password' ); ?></span>
15
- </h2>
16
- <div class="wtlwp-settings">
17
- <!-- Add New Form Start -->
18
 
19
  <div class="wrap new-wtlwp-form" id="new-wtlwp-form">
20
  <?php include WTLWP_PLUGIN_DIR . '/templates/new_login.php'; ?>
21
  </div>
22
 
23
- <?php if($do_update) { ?>
24
 
25
  <div class="wrap update-wtlwp-form" id="update-wtlwp-form">
26
- <?php include WTLWP_PLUGIN_DIR . '/templates/update_login.php'; ?>
27
  </div>
28
 
29
- <?php } ?>
30
 
31
  <?php if ( ! empty( $wtlwp_generated_url ) ) { ?>
32
 
33
- <div class="wrap generated-wtlwp-login-link" id="generated-wtlwp-login-link">
34
- <p>
35
  <?php _e( "Here's a temporary login link", 'temporary-login-without-password' ); ?>
36
- </p>
37
- <input id="wtlwp-click-to-copy-btn" type="text" class="wtlwp-wide-input" value="<?php echo $wtlwp_generated_url; ?>">
38
- <button class="wtlwp-click-to-copy-btn" data-clipboard-action="copy" data-clipboard-target="#wtlwp-click-to-copy-btn"><?php echo __( 'Click To Copy', 'temporary-login-without-password' ); ?></button>
39
- <span id="copied-text-message-wtlwp-click-to-copy-btn"></span>
40
- <p>
41
  <?php
42
- _e( 'User can directly login to wordpress admin panel without username and password by opening this link.', 'temporary-login-without-password' );
43
  if ( ! empty( $user_email ) ) {
44
  echo __( sprintf( " <a href='mailto:%s'>Email</a> copied login link to user.", $user_email ), 'temporary-login-without-password' );
45
  }
46
  ?>
47
- </p>
48
 
49
- </div>
50
  <?php } ?>
51
- <!-- Add New Form End -->
52
 
53
- <!-- List All Generated Logins Start -->
54
- <div class="wrap list-wtlwp-logins" id="list-wtlwp-logins">
55
  <?php load_template( WTLWP_PLUGIN_DIR . '/templates/list_temporary_logins.php' ); ?>
56
- </div>
57
- <!-- List All Generated Logins End -->
58
- </div>
59
- </div>
60
- <?php } elseif ( $active_tab == 'settings' ) { ?>
61
 
62
- <div class="wrap list-wtlwp-logins" id="wtlwp-logins-settings">
63
  <?php include WTLWP_PLUGIN_DIR . '/templates/temporary_logins_settings.php' ?>
64
- </div>
65
 
66
  <?php }// End if().
67
  ?>
1
  <?php ?>
2
  <h2 class="nav-tab-wrapper">
3
+ <a href="<?php echo admin_url( 'users.php?page=wp-temporary-login-without-password&tab=home' ); ?>"
4
+ class="nav-tab <?php echo $active_tab == 'home' ? 'nav-tab-active' : ''; ?>">Temporary Logins</a>
5
+ <a href="<?php echo admin_url( 'users.php?page=wp-temporary-login-without-password&tab=settings' ); ?>"
6
+ class="nav-tab <?php echo $active_tab == 'settings' ? 'nav-tab-active' : ''; ?>">Settings</a>
7
  </h2>
8
 
9
 
10
+ <?php if ( 'home' === $active_tab ) { ?>
11
+ <div class="wrap wtlwp-settings-wrap" id="temporary-logins">
12
+ <h2>
13
+ <?php echo __( 'Temporary Logins', 'temporary-login-without-password' ); ?>
14
  <span class="page-title-action" id="add-new-wtlwp-form-button"><?php _e( 'Create New', 'temporary-login-without-password' ); ?></span>
15
+ </h2>
16
+ <div class="wtlwp-settings">
17
+ <!-- Add New Form Start -->
18
 
19
  <div class="wrap new-wtlwp-form" id="new-wtlwp-form">
20
  <?php include WTLWP_PLUGIN_DIR . '/templates/new_login.php'; ?>
21
  </div>
22
 
23
+ <?php if ( $do_update ) { ?>
24
 
25
  <div class="wrap update-wtlwp-form" id="update-wtlwp-form">
26
+ <?php include WTLWP_PLUGIN_DIR . '/templates/update_login.php'; ?>
27
  </div>
28
 
29
+ <?php } ?>
30
 
31
  <?php if ( ! empty( $wtlwp_generated_url ) ) { ?>
32
 
33
+ <div class="wrap generated-wtlwp-login-link" id="generated-wtlwp-login-link">
34
+ <p>
35
  <?php _e( "Here's a temporary login link", 'temporary-login-without-password' ); ?>
36
+ </p>
37
+ <input id="wtlwp-click-to-copy-btn" type="text" class="wtlwp-wide-input" value="<?php echo $wtlwp_generated_url; ?>">
38
+ <button class="wtlwp-click-to-copy-btn" data-clipboard-action="copy" data-clipboard-target="#wtlwp-click-to-copy-btn"><?php echo __( 'Click To Copy', 'temporary-login-without-password' ); ?></button>
39
+ <span id="copied-text-message-wtlwp-click-to-copy-btn"></span>
40
+ <p>
41
  <?php
42
+ _e( 'User can directly login to wordpress admin panel without username and password by opening this link.', 'temporary-login-without-password' );
43
  if ( ! empty( $user_email ) ) {
44
  echo __( sprintf( " <a href='mailto:%s'>Email</a> copied login link to user.", $user_email ), 'temporary-login-without-password' );
45
  }
46
  ?>
47
+ </p>
48
 
49
+ </div>
50
  <?php } ?>
51
+ <!-- Add New Form End -->
52
 
53
+ <!-- List All Generated Logins Start -->
54
+ <div class="wrap list-wtlwp-logins" id="list-wtlwp-logins">
55
  <?php load_template( WTLWP_PLUGIN_DIR . '/templates/list_temporary_logins.php' ); ?>
56
+ </div>
57
+ <!-- List All Generated Logins End -->
58
+ </div>
59
+ </div>
60
+ <?php } elseif ( 'settings' === $active_tab ) { ?>
61
 
62
+ <div class="wrap list-wtlwp-logins" id="wtlwp-logins-settings">
63
  <?php include WTLWP_PLUGIN_DIR . '/templates/temporary_logins_settings.php' ?>
64
+ </div>
65
 
66
  <?php }// End if().
67
  ?>
templates/new_login.php CHANGED
@@ -57,13 +57,13 @@
57
  </th>
58
  <td>
59
  <span id="expiry-date-selection">
60
- <select name="wtlwp_data[expiry]" id="user-expiry-time">
61
  <?php Wp_Temporary_Login_Without_Password_Common::get_expiry_duration_html('week'); ?>
62
  </select>
63
  </span>
64
 
65
- <span style="display:none;" id="custom-date-picker">
66
- <input type="date" id="datepicker" name="wtlwp_data[custom_date]" value="" class="example-datepicker"/>
67
  </span>
68
 
69
  </td>
57
  </th>
58
  <td>
59
  <span id="expiry-date-selection">
60
+ <select name="wtlwp_data[expiry]" id="new-user-expiry-time">
61
  <?php Wp_Temporary_Login_Without_Password_Common::get_expiry_duration_html('week'); ?>
62
  </select>
63
  </span>
64
 
65
+ <span style="display:none;" id="new-custom-date-picker">
66
+ <input type="date" id="datepicker" name="wtlwp_data[custom_date]" value="" class="new-custom-date-picker"/>
67
  </span>
68
 
69
  </td>
templates/update_login.php CHANGED
@@ -60,13 +60,13 @@
60
  </th>
61
  <td>
62
  <span id="expiry-date-selection">
63
- <select name="wtlwp_data[expiry]" id="user-expiry-time">
64
  <?php Wp_Temporary_Login_Without_Password_Common::get_expiry_duration_html('week'); ?>
65
  </select>
66
  </span>
67
 
68
- <span style="display:none;" id="custom-date-picker">
69
- <input type="date" id="datepicker" name="wtlwp_data[custom_date]" value="" class="example-datepicker"/>
70
  </span>
71
 
72
  </td>
60
  </th>
61
  <td>
62
  <span id="expiry-date-selection">
63
+ <select name="wtlwp_data[expiry]" id="update-user-expiry-time">
64
  <?php Wp_Temporary_Login_Without_Password_Common::get_expiry_duration_html('week'); ?>
65
  </select>
66
  </span>
67
 
68
+ <span style="display:none;" id="update-custom-date-picker">
69
+ <input type="date" id="datepicker" name="wtlwp_data[custom_date]" value="" class="update-custom-date-picker"/>
70
  </span>
71
 
72
  </td>
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.5
7
  * Author: StoreApps
8
  * Author URI: http://storeapps.org
9
  * Requires at least: 3.3
@@ -24,7 +24,7 @@ if ( ! defined( 'WPINC' ) ) {
24
  * Define constants
25
  */
26
  define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
27
- define( 'WTLWP_PLUGIN_VERSION', '1.5.5');
28
 
29
  /**
30
  * Deactivate Temporary Login Without Password
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.6
7
  * Author: StoreApps
8
  * Author URI: http://storeapps.org
9
  * Requires at least: 3.3
24
  * Define constants
25
  */
26
  define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
27
+ define( 'WTLWP_PLUGIN_VERSION', '1.5.6');
28
 
29
  /**
30
  * Deactivate Temporary Login Without Password