Temporary Login Without Password - Version 1.5.5

Version Description

Download this release

Release Info

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

Code changes from version 1.5.4 to 1.5.5

admin/class-wp-temporary-login-without-password-admin.php CHANGED
@@ -104,7 +104,7 @@ class Wp_Temporary_Login_Without_Password_Admin {
104
  }
105
 
106
  $default_role = ( ! empty( $tlwp_settings ) && isset( $tlwp_settings['default_role'] ) ) ? $tlwp_settings['default_role'] : 'administrator';
107
- $visible_roles = ( ! empty( $tlwp_settings ) && isset( $tlwp_settings['visible_roles'] ) ) ? $tlwp_settings['visible_roles'] : '';
108
 
109
  include $_template_file;
110
  }
@@ -383,76 +383,36 @@ class Wp_Temporary_Login_Without_Password_Admin {
383
  $success = ! empty( $_REQUEST['wtlwp_success'] ) ? true : false;
384
  if ( $error ) {
385
  $message_type = ! empty( $_REQUEST['wtlwp_message'] ) ? $_REQUEST['wtlwp_message'] : 'default_error_message';
386
- switch ( $message_type ) {
387
- case 'user_creation_failed':
388
- $message = __( 'User creation failed', 'temporary-login-without-password' );
389
- break;
390
-
391
- case 'unathorised_access':
392
- $message = __( 'You do not have permission to create a temporary login', 'temporary-login-without-password' );
393
- break;
394
-
395
- case 'email_is_in_use':
396
- $message = __( 'Email already is in use', 'temporary-login-without-password' );
397
- break;
398
-
399
- case 'empty_email':
400
- $message = __( 'Please enter valid email address. Email field should not be empty', 'temporary-login-without-password' );
401
- break;
402
-
403
- case 'not_valid_email':
404
- $message = __( 'Please enter valid email address', 'temporary-login-without-password' );
405
- break;
406
-
407
- case 'is_not_temporary_login':
408
- $message = __( 'User you are trying to delete is not temporary', 'temporary-login-without-password' );
409
- break;
410
-
411
- case 'nonce_failed':
412
- $message = __( 'Nonce failed', 'temporary-login-without-password' );
413
- break;
414
-
415
- case 'invalid_action':
416
- $message = __( 'Invalid action', 'temporary-login-without-password' );
417
- break;
418
-
419
- case 'default_error_message':
420
- default:
421
- $message = __( 'Unknown error occured', 'temporary-login-without-password' );
422
- break;
423
- }// End switch().
424
  $class = 'error';
425
  } elseif ( $success ) {
426
  $message_type = ! empty( $_REQUEST['wtlwp_message'] ) ? $_REQUEST['wtlwp_message'] : 'default_success_message';
427
- switch ( $message_type ) {
428
- case 'user_created':
429
- $message = __( 'Login created successfully!', 'temporary-login-without-password' );
430
- break;
431
- case 'user_updated':
432
- $message = __( 'Login updated successfully!', 'temporary-login-without-password' );
433
- break;
434
-
435
- case 'user_deleted':
436
- $message = __( 'Login deleted successfully!', 'temporary-login-without-password' );
437
- break;
438
-
439
- case 'login_disabled':
440
- $message = __( 'Login disabled successfully!', 'temporary-login-without-password' );
441
- break;
442
-
443
- case 'login_enabled':
444
- $message = __( 'Login enabled successfully!', 'temporary-login-without-password' );
445
- break;
446
-
447
- case 'settings_updated':
448
- $message = __( 'Settings have been updated successfully', 'temporary-login-without-password' );
449
- break;
450
-
451
-
452
- default:
453
- $message = __( 'Success!', 'temporary-login-without-password' );
454
- break;
455
- }
456
 
457
  $class = 'updated';
458
  }// End if().
@@ -620,4 +580,35 @@ class Wp_Temporary_Login_Without_Password_Admin {
620
  return $actions;
621
  }
622
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
623
  }
104
  }
105
 
106
  $default_role = ( ! empty( $tlwp_settings ) && isset( $tlwp_settings['default_role'] ) ) ? $tlwp_settings['default_role'] : 'administrator';
107
+ $visible_roles = ( ! empty( $tlwp_settings ) && isset( $tlwp_settings['visible_roles'] ) ) ? $tlwp_settings['visible_roles'] : array();
108
 
109
  include $_template_file;
110
  }
383
  $success = ! empty( $_REQUEST['wtlwp_success'] ) ? true : false;
384
  if ( $error ) {
385
  $message_type = ! empty( $_REQUEST['wtlwp_message'] ) ? $_REQUEST['wtlwp_message'] : 'default_error_message';
386
+
387
+ $messages = array(
388
+ 'user_creation_failed' => __( 'User creation failed', 'temporary-login-without-password' ),
389
+ 'unathorised_access' => __( 'You do not have permission to create a temporary login', 'temporary-login-without-password' ),
390
+ 'email_is_in_use' => __( 'Email is already in use', 'temporary-login-without-password' ),
391
+ 'empty_email' => __( 'Please enter valid email address. Email field should not be empty', 'temporary-login-without-password' ),
392
+ 'not_valid_email' => __( 'Please enter valid email address', 'temporary-login-without-password' ),
393
+ 'is_not_temporary_login' => __( 'User you are trying to delete is not temporary', 'temporary-login-without-password' ),
394
+ 'nonce_failed' => __( 'Nonce failed', 'temporary-login-without-password' ),
395
+ 'invalid_action' => __( 'Invalid action', 'temporary-login-without-password' ),
396
+ 'default_error_message' => __( 'Unknown error occured', 'temporary-login-without-password' )
397
+ );
398
+
399
+ $message = $messages[$message_type];
400
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
401
  $class = 'error';
402
  } elseif ( $success ) {
403
  $message_type = ! empty( $_REQUEST['wtlwp_message'] ) ? $_REQUEST['wtlwp_message'] : 'default_success_message';
404
+
405
+ $messages = array(
406
+ 'user_created' => __( 'Login created successfully!', 'temporary-login-without-password' ),
407
+ 'user_updated' => __( 'Login updated successfully!', 'temporary-login-without-password' ),
408
+ 'user_deleted' => __( 'Login deleted successfully!', 'temporary-login-without-password' ),
409
+ 'login_disabled' => __( 'Login disabled successfully!', 'temporary-login-without-password' ),
410
+ 'login_enabled' => __( 'Login enabled successfully!', 'temporary-login-without-password' ),
411
+ 'settings_updated' => __( 'Settings have been updated successfully', 'temporary-login-without-password' ),
412
+ 'default_success_message' => __( 'Success!', 'temporary-login-without-password' )
413
+ );
414
+
415
+ $message = $messages[$message_type];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
416
 
417
  $class = 'updated';
418
  }// End if().
580
  return $actions;
581
  }
582
 
583
+ /**
584
+ * Display admin bar when Temporary user logged in.
585
+ *
586
+ * @param WP_Admin_Bar $wp_admin_bar WP_Admin_Bar instance, passed by reference.
587
+ *
588
+ * @since 1.5.4
589
+ *
590
+ * @return bool
591
+ */
592
+ public function tlwp_show_temporary_access_notice_in_admin_bar( $wp_admin_bar ) {
593
+
594
+ $current_user_id = get_current_user_id();
595
+
596
+ $is_valid_temporary_user = Wp_Temporary_Login_Without_Password_Common::is_valid_temporary_login( $current_user_id );
597
+
598
+ if ( $is_valid_temporary_user ) {
599
+ // Add the main site admin menu item.
600
+ $wp_admin_bar->add_menu( array(
601
+ 'id' => 'temporay-access-notice',
602
+ 'href' => admin_url(),
603
+ 'parent' => 'top-secondary',
604
+ 'title' => __( 'Temporary Access', 'temporary-login-without-password' ),
605
+ 'meta' => array( 'class' => 'temporay-access-mode-active' ),
606
+ ) );
607
+ }
608
+
609
+
610
+ return true;
611
+
612
+ }
613
+
614
  }
admin/css/wp-temporary-login-without-password-admin.css CHANGED
@@ -1,7 +1,7 @@
1
- .new-wtlwp-form, .update-wtlwp-form {
 
2
  border: 1px solid;
3
  padding: 10px;
4
- background-color: white;
5
  }
6
 
7
  .new-wtlwp-form {
@@ -101,3 +101,8 @@
101
  .default-role-dropdown {
102
  width: 200px;
103
  }
 
 
 
 
 
1
+ .wtlwp-form {
2
+ background-color: white;
3
  border: 1px solid;
4
  padding: 10px;
 
5
  }
6
 
7
  .new-wtlwp-form {
101
  .default-role-dropdown {
102
  width: 200px;
103
  }
104
+
105
+ #wpadminbar .temporay-access-mode-active > .ab-item {
106
+ color: #fff;
107
+ background-color: #ffba00;
108
+ }
includes/class-wp-temporary-login-without-password-common.php CHANGED
@@ -176,6 +176,11 @@ class Wp_Temporary_Login_Without_Password_Common {
176
 
177
  }
178
 
 
 
 
 
 
179
  static function get_expiry_duration_html( $selected = '' ) {
180
 
181
  $p = '';
@@ -195,50 +200,49 @@ class Wp_Temporary_Login_Without_Password_Common {
195
 
196
  }
197
 
 
 
 
 
 
 
198
  public static function generate_password() {
199
  return wp_generate_password( absint( 15 ), true, false );
200
 
201
  }
202
 
 
 
 
 
 
 
 
 
 
 
203
  public static function get_user_expire_time( $expiry_option = 'day', $date = '' ) {
204
 
205
- $current_timestamp = self::get_current_gmt_timestamp();
206
-
207
- switch ( $expiry_option ) {
208
- case '3_days' :
209
- $timestamp = DAY_IN_SECONDS * 3;
210
- break;
211
-
212
- case 'day':
213
- $timestamp = DAY_IN_SECONDS;
214
- break;
215
-
216
- case '3_hours':
217
- $timestamp = HOUR_IN_SECONDS * 3;
218
- break;
219
-
220
- case 'hour':
221
- $timestamp = HOUR_IN_SECONDS;
222
- break;
223
-
224
- case 'week':
225
- $timestamp = WEEK_IN_SECONDS;
226
- break;
227
 
228
- case 'month':
229
- $timestamp = MONTH_IN_SECONDS;
230
- break;
231
 
232
- case 'custom_date':
233
- $timestamp = strtotime( $date );
234
- $current_timestamp = 0;
235
- break;
236
 
237
- default:
238
- $timestamp = DAY_IN_SECONDS;
239
- break;
240
  }
241
 
 
 
242
  return $current_timestamp + floatval( $timestamp );
243
 
244
  }
@@ -523,33 +527,12 @@ class Wp_Temporary_Login_Without_Password_Common {
523
  $base_url = menu_page_url( 'wp-temporary-login-without-password', false );
524
  $args = array();
525
 
526
- switch ( $action ) {
527
- case 'disable';
528
- $args = array(
529
- 'wtlwp_action' => 'disable',
530
- 'user_id' => $user_id,
531
- );
532
- break;
533
- case 'enable';
534
- $args = array(
535
- 'wtlwp_action' => 'enable',
536
- 'user_id' => $user_id,
537
- );
538
- break;
539
- case 'delete';
540
- $args = array(
541
- 'wtlwp_action' => 'delete',
542
- 'user_id' => $user_id,
543
- );
544
- break;
545
- case 'update';
546
- $args = array(
547
- 'wtlwp_action' => 'update',
548
- 'user_id' => $user_id,
549
- );
550
- break;
551
- default:
552
- break;
553
  }
554
 
555
  $manage_login_url = '';
@@ -807,8 +790,17 @@ class Wp_Temporary_Login_Without_Password_Common {
807
 
808
  $visible_roles = ! empty( $visible_roles ) ? $visible_roles : array_keys( $editable_roles );
809
 
 
 
 
 
 
 
 
 
810
  foreach ( $editable_roles as $role => $details ) {
811
- if ( in_array( $role, $visible_roles ) ) {
 
812
  $name = translate_user_role( $details['name'] );
813
  // preselect specified role
814
  if ( $selected == $role ) {
176
 
177
  }
178
 
179
+ /**
180
+ * Get Expire duration dropdown
181
+ *
182
+ * @param string $selected
183
+ */
184
  static function get_expiry_duration_html( $selected = '' ) {
185
 
186
  $p = '';
200
 
201
  }
202
 
203
+ /**
204
+ * Generate password for new user.
205
+ *
206
+ * @since 1.0.0
207
+ * @return string
208
+ */
209
  public static function generate_password() {
210
  return wp_generate_password( absint( 15 ), true, false );
211
 
212
  }
213
 
214
+ /**
215
+ * Get the expiration time based on string
216
+ *
217
+ * @param string $expiry_option
218
+ * @param string $date
219
+ *
220
+ * @since 1.0.0
221
+ *
222
+ * @return false|float|int
223
+ */
224
  public static function get_user_expire_time( $expiry_option = 'day', $date = '' ) {
225
 
226
+ $timestamps = array(
227
+ '3_days' => DAY_IN_SECONDS * 3,
228
+ 'day' => DAY_IN_SECONDS,
229
+ '3_hours' => HOUR_IN_SECONDS * 3,
230
+ 'hour' => HOUR_IN_SECONDS,
231
+ 'week' => WEEK_IN_SECONDS,
232
+ 'month' => MONTH_IN_SECONDS,
233
+ 'custom_date' => strtotime( $date ),
234
+ );
 
 
 
 
 
 
 
 
 
 
 
 
 
235
 
236
+ $expiry_option = in_array( $expiry_option, array_keys( $timestamps ) ) ? $expiry_option : 'day';
 
 
237
 
238
+ $current_timestamp = self::get_current_gmt_timestamp();
 
 
 
239
 
240
+ if ( 'custom_date' === $expiry_option ) {
241
+ $current_timestamp = 0;
 
242
  }
243
 
244
+ $timestamp = $timestamps[ $expiry_option ];
245
+
246
  return $current_timestamp + floatval( $timestamp );
247
 
248
  }
527
  $base_url = menu_page_url( 'wp-temporary-login-without-password', false );
528
  $args = array();
529
 
530
+ $valid_actions = array( 'disable', 'enable', 'delete', 'update' );
531
+ if ( in_array( $action, $valid_actions ) ) {
532
+ $args = array(
533
+ 'wtlwp_action' => $action,
534
+ 'user_id' => $user_id,
535
+ );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
536
  }
537
 
538
  $manage_login_url = '';
790
 
791
  $visible_roles = ! empty( $visible_roles ) ? $visible_roles : array_keys( $editable_roles );
792
 
793
+ /**
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 ) {
languages/temporary-login-without-password.pot CHANGED
@@ -3,18 +3,17 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: PACKAGE VERSION\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2018-02-05 16:55+0000\n"
7
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9
  "Language-Team: \n"
10
  "Language: \n"
11
- "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
- "X-Generator: Loco - https://localise.biz/"
16
 
17
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:80
18
  #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:80
19
  #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin_settings.php:13
20
  msgid "Temporary Logins"
@@ -24,82 +23,86 @@ msgstr ""
24
  msgid "User creation failed"
25
  msgstr ""
26
 
27
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:392
28
  msgid "You do not have permission to create a temporary login"
29
  msgstr ""
30
 
31
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:396
32
- msgid "Email already is in use"
33
  msgstr ""
34
 
35
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:400
36
  msgid "Please enter valid email address. Email field should not be empty"
37
  msgstr ""
38
 
39
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:404
40
  msgid "Please enter valid email address"
41
  msgstr ""
42
 
43
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:408
44
  msgid "User you are trying to delete is not temporary"
45
  msgstr ""
46
 
47
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:412
48
  msgid "Nonce failed"
49
  msgstr ""
50
 
51
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:416
52
  msgid "Invalid action"
53
  msgstr ""
54
 
55
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:421
56
  msgid "Unknown error occured"
57
  msgstr ""
58
 
59
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:429
60
  msgid "Login created successfully!"
61
  msgstr ""
62
 
63
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:432
64
  msgid "Login updated successfully!"
65
  msgstr ""
66
 
67
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:436
68
  msgid "Login deleted successfully!"
69
  msgstr ""
70
 
71
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:440
72
  msgid "Login disabled successfully!"
73
  msgstr ""
74
 
75
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:444
76
  msgid "Login enabled successfully!"
77
  msgstr ""
78
 
79
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:448
80
  msgid "Settings have been updated successfully"
81
  msgstr ""
82
 
83
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:453
84
  msgid "Success!"
85
  msgstr ""
86
 
87
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:509
88
  #, php-format
89
  msgid ""
90
  "If you like <strong>Temporary Login Without Password</strong> plugin, please "
91
  "leave us a %s rating. A huge thanks in advance!"
92
  msgstr ""
93
 
94
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:509
95
  msgid "Thank You :) "
96
  msgstr ""
97
 
98
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:511
99
  #, php-format
100
  msgid "Thank you for using %s."
101
  msgstr ""
102
 
 
 
 
 
103
  #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:158
104
  msgid "One Hour"
105
  msgstr ""
@@ -132,8 +135,8 @@ msgstr ""
132
  msgid "No Option Found"
133
  msgstr ""
134
 
135
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:654
136
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:689
137
  msgid "Expired"
138
  msgstr ""
139
 
@@ -248,7 +251,7 @@ msgid "Grant this user super admin privileges for the Network."
248
  msgstr ""
249
 
250
  #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new_login.php:76
251
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/temporary_logins_settings.php:30
252
  #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update_login.php:79
253
  msgid "Submit"
254
  msgstr ""
3
  msgstr ""
4
  "Project-Id-Version: PACKAGE VERSION\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2018-02-26 07:54+0000\n"
7
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9
  "Language-Team: \n"
10
  "Language: \n"
11
+ "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
+ "X-Generator: Loco https://localise.biz/"
16
 
 
17
  #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:80
18
  #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin_settings.php:13
19
  msgid "Temporary Logins"
23
  msgid "User creation failed"
24
  msgstr ""
25
 
26
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:389
27
  msgid "You do not have permission to create a temporary login"
28
  msgstr ""
29
 
30
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:390
31
+ msgid "Email is already in use"
32
  msgstr ""
33
 
34
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:391
35
  msgid "Please enter valid email address. Email field should not be empty"
36
  msgstr ""
37
 
38
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:392
39
  msgid "Please enter valid email address"
40
  msgstr ""
41
 
42
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:393
43
  msgid "User you are trying to delete is not temporary"
44
  msgstr ""
45
 
46
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:394
47
  msgid "Nonce failed"
48
  msgstr ""
49
 
50
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:395
51
  msgid "Invalid action"
52
  msgstr ""
53
 
54
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:396
55
  msgid "Unknown error occured"
56
  msgstr ""
57
 
58
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:406
59
  msgid "Login created successfully!"
60
  msgstr ""
61
 
62
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:407
63
  msgid "Login updated successfully!"
64
  msgstr ""
65
 
66
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:408
67
  msgid "Login deleted successfully!"
68
  msgstr ""
69
 
70
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:409
71
  msgid "Login disabled successfully!"
72
  msgstr ""
73
 
74
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:410
75
  msgid "Login enabled successfully!"
76
  msgstr ""
77
 
78
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:411
79
  msgid "Settings have been updated successfully"
80
  msgstr ""
81
 
82
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:412
83
  msgid "Success!"
84
  msgstr ""
85
 
86
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:469
87
  #, php-format
88
  msgid ""
89
  "If you like <strong>Temporary Login Without Password</strong> plugin, please "
90
  "leave us a %s rating. A huge thanks in advance!"
91
  msgstr ""
92
 
93
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:469
94
  msgid "Thank You :) "
95
  msgstr ""
96
 
97
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:471
98
  #, php-format
99
  msgid "Thank you for using %s."
100
  msgstr ""
101
 
102
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:604
103
+ msgid "Temporary Access"
104
+ msgstr ""
105
+
106
  #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:158
107
  msgid "One Hour"
108
  msgstr ""
135
  msgid "No Option Found"
136
  msgstr ""
137
 
138
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:634
139
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:669
140
  msgid "Expired"
141
  msgstr ""
142
 
251
  msgstr ""
252
 
253
  #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new_login.php:76
254
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/temporary_logins_settings.php:31
255
  #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update_login.php:79
256
  msgid "Submit"
257
  msgstr ""
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, passwordless login, customer access, 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, temporary login, user, WordPress Admin, wp-admin, developer account, developer login, developer account, password less login
5
  Requires at least: 3.0.1
6
  Tested up to: 4.9.4
7
- Stable tag: 1.5.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -43,6 +43,12 @@ If you like Temporary Login Without Password, please leave a five star review on
43
 
44
  == Changelog ==
45
 
 
 
 
 
 
 
46
  **1.5.4 [02-20-2018]**
47
 
48
  * Fixed: Invalid argument supplied for foreach() PHP Warning in class-wp-temporary-login-without-password-deactivator.php
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
 
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".
49
+ * Fixed: PHP Warning: in_array() expects parameter 2 to be array, string given in temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php
50
+ * Fixed: Existing temporary user's role is not available into roles dropdown while edit.
51
+
52
  **1.5.4 [02-20-2018]**
53
 
54
  * Fixed: Invalid argument supplied for foreach() PHP Warning in class-wp-temporary-login-without-password-deactivator.php
templates/new_login.php CHANGED
@@ -58,7 +58,7 @@
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(); ?>
62
  </select>
63
  </span>
64
 
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
 
templates/temporary_logins_settings.php CHANGED
@@ -25,6 +25,7 @@
25
  </tr>
26
 
27
  <tr class="form-field">
 
28
  <td>
29
  <p class="submit">
30
  <input type="submit" class="button button-primary wtlwp-form-submit-button" value="<?php _e( 'Submit', 'temporary-login-without-password' ); ?>" class="button button-primary" id="generatetemporarylogin" name="generate_temporary_login">
25
  </tr>
26
 
27
  <tr class="form-field">
28
+ <th scope="row" class="wtlwp-form-row"><label for="temporary-login-settings"></label></th>
29
  <td>
30
  <p class="submit">
31
  <input type="submit" class="button button-primary wtlwp-form-submit-button" value="<?php _e( 'Submit', 'temporary-login-without-password' ); ?>" class="button button-primary" id="generatetemporarylogin" name="generate_temporary_login">
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.4
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.4');
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.5
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.5');
28
 
29
  /**
30
  * Deactivate Temporary Login Without Password