Temporary Login Without Password - Version 1.5.9

Version Description

Download this release

Release Info

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

Code changes from version 1.5.8 to 1.5.9

admin/class-wp-temporary-login-without-password-admin.php CHANGED
@@ -116,7 +116,8 @@ class Wp_Temporary_Login_Without_Password_Admin {
116
  }
117
 
118
  $default_role = ( ! empty( $tlwp_settings ) && isset( $tlwp_settings['default_role'] ) ) ? $tlwp_settings['default_role'] : 'administrator';
119
- $visible_roles = ( ! empty( $tlwp_settings ) && isset( $tlwp_settings['visible_roles'] ) ) ? $tlwp_settings['visible_roles'] : array();
 
120
 
121
  include $_template_file;
122
  }
@@ -200,6 +201,7 @@ class Wp_Temporary_Login_Without_Password_Admin {
200
  $data = $_POST['tlwp_settings_data'];
201
 
202
  $default_role = isset( $data['default_role'] ) ? $data['default_role'] : 'administrator';
 
203
  $visible_roles = isset( $data['visible_roles'] ) ? $data['visible_roles'] : array();
204
 
205
  if ( ! in_array( $default_role, $visible_roles ) ) {
@@ -208,7 +210,8 @@ class Wp_Temporary_Login_Without_Password_Admin {
208
 
209
  $tlwp_settings = array(
210
  'default_role' => $default_role,
211
- 'visible_roles' => $visible_roles,
 
212
  );
213
 
214
  $update = update_option( 'tlwp_settings', maybe_serialize( $tlwp_settings ), true );
@@ -222,9 +225,7 @@ class Wp_Temporary_Login_Without_Password_Admin {
222
  );
223
  }
224
 
225
- if ( empty( $redirect_link ) ) {
226
- $redirect_link = Wp_Temporary_Login_Without_Password_Common::get_redirect_link( $result );
227
- }
228
 
229
  wp_redirect( $redirect_link, 302 );
230
  exit();
116
  }
117
 
118
  $default_role = ( ! empty( $tlwp_settings ) && isset( $tlwp_settings['default_role'] ) ) ? $tlwp_settings['default_role'] : 'administrator';
119
+ $default_expiry_time = ( ! empty( $tlwp_settings ) && isset( $tlwp_settings['default_expiry_time'] ) ) ? $tlwp_settings['default_expiry_time'] : 'week';
120
+ $visible_roles = ( ! empty( $tlwp_settings ) && isset( $tlwp_settings['visible_roles'] ) ) ? $tlwp_settings['visible_roles'] : array();
121
 
122
  include $_template_file;
123
  }
201
  $data = $_POST['tlwp_settings_data'];
202
 
203
  $default_role = isset( $data['default_role'] ) ? $data['default_role'] : 'administrator';
204
+ $default_expiry_time = isset( $data['default_expiry_time'] ) ? $data['default_expiry_time'] : 'week';
205
  $visible_roles = isset( $data['visible_roles'] ) ? $data['visible_roles'] : array();
206
 
207
  if ( ! in_array( $default_role, $visible_roles ) ) {
210
 
211
  $tlwp_settings = array(
212
  'default_role' => $default_role,
213
+ 'default_expiry_time' => $default_expiry_time,
214
+ 'visible_roles' => $visible_roles
215
  );
216
 
217
  $update = update_option( 'tlwp_settings', maybe_serialize( $tlwp_settings ), true );
225
  );
226
  }
227
 
228
+ $redirect_link = Wp_Temporary_Login_Without_Password_Common::get_redirect_link( $result );
 
 
229
 
230
  wp_redirect( $redirect_link, 302 );
231
  exit();
includes/class-wp-temporary-login-without-password-common.php CHANGED
@@ -188,7 +188,7 @@ class Wp_Temporary_Login_Without_Password_Common {
188
  *
189
  * @param string $selected
190
  */
191
- static function get_expiry_duration_html( $selected = '' ) {
192
 
193
  $p = '';
194
  $r = '';
@@ -196,6 +196,12 @@ class Wp_Temporary_Login_Without_Password_Common {
196
  $expiry_duration = self::get_expiry_options();
197
 
198
  foreach ( $expiry_duration as $key => $label ) {
 
 
 
 
 
 
199
  if ( $selected == $key ) {
200
  $p = "\n\t<option selected='selected' value='" . esc_attr( $key ) . "'>$label</option>";
201
  } else {
@@ -880,4 +886,5 @@ class Wp_Temporary_Login_Without_Password_Common {
880
 
881
  return true;
882
  }
 
883
  }
188
  *
189
  * @param string $selected
190
  */
191
+ static function get_expiry_duration_html( $selected = '', $excluded = array() ) {
192
 
193
  $p = '';
194
  $r = '';
196
  $expiry_duration = self::get_expiry_options();
197
 
198
  foreach ( $expiry_duration as $key => $label ) {
199
+
200
+ // We don't need to add option into dropdown if it's excluded
201
+ if(!empty($excluded) && in_array($key, $excluded)) {
202
+ continue;
203
+ }
204
+
205
  if ( $selected == $key ) {
206
  $p = "\n\t<option selected='selected' value='" . esc_attr( $key ) . "'>$label</option>";
207
  } else {
886
 
887
  return true;
888
  }
889
+
890
  }
languages/temporary-login-without-password.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: PACKAGE VERSION\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2018-04-23 06:52+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"
@@ -14,92 +14,93 @@ msgstr ""
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:85
18
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin_settings.php:13
 
19
  msgid "Temporary Logins"
20
  msgstr ""
21
 
22
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:383
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:384
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:385
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:386
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:387
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:388
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:389
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:390
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:391
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:392
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:393
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:394
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:395
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:396
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:397
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:398
83
  msgid "Success!"
84
  msgstr ""
85
 
86
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:463
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:463
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:465
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:626
103
  msgid "Temporary Access"
104
  msgstr ""
105
 
@@ -135,178 +136,186 @@ 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:641
139
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:678
140
  msgid "Expired"
141
  msgstr ""
142
 
143
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:839
144
  msgid "Hello,"
145
  msgstr ""
146
 
147
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:840
148
  msgid "Click the following link to log into the system:"
149
  msgstr ""
150
 
151
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:841
152
  msgid "Temporary Login Link"
153
  msgstr ""
154
 
155
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:16
156
  msgid "Users"
157
  msgstr ""
158
 
159
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:17
160
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new_login.php:44
161
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update_login.php:44
162
  msgid "Role"
163
  msgstr ""
164
 
165
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:18
166
  msgid "Last Logged In"
167
  msgstr ""
168
 
169
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:19
170
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new_login.php:56
171
  msgid "Expiry"
172
  msgstr ""
173
 
174
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:20
175
  msgid "Actions"
176
  msgstr ""
177
 
178
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:38
179
  msgid "You have not created any temporary logins yet."
180
  msgstr ""
181
 
182
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:61
183
  msgid "Not yet logged in"
184
  msgstr ""
185
 
186
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:72
187
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new_login.php:34
188
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update_login.php:34
189
  msgid "Super Admin"
190
  msgstr ""
191
 
192
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:143
193
  msgid "Disable"
194
  msgstr ""
195
 
196
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:145
197
  msgid "Reactivate for one day"
198
  msgstr ""
199
 
200
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:148
201
  msgid "Delete"
202
  msgstr ""
203
 
204
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:149
205
  msgid "Edit"
206
  msgstr ""
207
 
208
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:153
209
  msgid "Email login link"
210
  msgstr ""
211
 
212
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:154
213
  msgid "Copy login link"
214
  msgstr ""
215
 
216
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/public/class-wp-temporary-login-without-password-public.php:16
217
  msgid "Token empty"
218
  msgstr ""
219
 
220
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/public/class-wp-temporary-login-without-password-public.php:17
221
  msgid "Authentication failed"
222
  msgstr ""
223
 
224
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/public/class-wp-temporary-login-without-password-public.php:73
225
  msgid "You don't have permission to access this page"
226
  msgstr ""
227
 
228
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin_settings.php:14
 
 
 
 
229
  msgid "Create New"
230
  msgstr ""
231
 
232
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin_settings.php:35
233
  msgid "Here's a temporary login link"
234
  msgstr ""
235
 
236
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin_settings.php:38
237
  msgid "Click To Copy"
238
  msgstr ""
239
 
240
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin_settings.php:42
241
  msgid ""
242
- "User can directly login to wordpress admin panel without username and "
243
  "password by opening this link."
244
  msgstr ""
245
 
246
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new_login.php:1
247
  msgid "Create a new Temporary Login"
248
  msgstr ""
249
 
250
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new_login.php:6
251
  msgid "Email*"
252
  msgstr ""
253
 
254
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new_login.php:15
255
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update_login.php:15
256
  msgid "First Name"
257
  msgstr ""
258
 
259
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new_login.php:24
260
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update_login.php:24
261
  msgid "Last Name"
262
  msgstr ""
263
 
264
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new_login.php:38
265
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update_login.php:38
266
  msgid "Grant this user super admin privileges for the Network."
267
  msgstr ""
268
 
269
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new_login.php:76
270
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/temporary_logins_settings.php:31
271
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update_login.php:79
272
  msgid "Submit"
273
  msgstr ""
274
 
275
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new_login.php:76
276
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update_login.php:79
277
  msgid "or"
278
  msgstr ""
279
 
280
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new_login.php:77
281
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update_login.php:80
282
  msgid "Cancel"
283
  msgstr ""
284
 
285
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/temporary_logins_settings.php:1
286
  msgid "Temporary Login Settings"
287
  msgstr ""
288
 
289
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/temporary_logins_settings.php:6
290
  msgid "Visible Roles"
291
  msgstr ""
292
 
293
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/temporary_logins_settings.php:7
294
  msgid "select roles from which you want to create a temporary login"
295
  msgstr ""
296
 
297
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/temporary_logins_settings.php:18
298
  msgid "Default Role"
299
  msgstr ""
300
 
301
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update_login.php:1
 
 
 
 
302
  msgid "Update Temporary Login"
303
  msgstr ""
304
 
305
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update_login.php:6
306
  msgid "Email"
307
  msgstr ""
308
 
309
- #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update_login.php:59
310
  msgid "Extend Expiry"
311
  msgstr ""
312
 
3
  msgstr ""
4
  "Project-Id-Version: PACKAGE VERSION\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2018-07-24 07:53+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"
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:84
18
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:10
19
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:17
20
  msgid "Temporary Logins"
21
  msgstr ""
22
 
23
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:384
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:385
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:386
32
  msgid "Email is already in use"
33
  msgstr ""
34
 
35
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:387
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:388
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:389
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:390
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:391
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:392
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:393
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:394
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:395
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:396
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:397
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:398
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:399
84
  msgid "Success!"
85
  msgstr ""
86
 
87
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:472
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:472
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:474
99
  #, php-format
100
  msgid "Thank you for using %s."
101
  msgstr ""
102
 
103
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:603
104
  msgid "Temporary Access"
105
  msgstr ""
106
 
136
  msgid "No Option Found"
137
  msgstr ""
138
 
139
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:647
140
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:684
141
  msgid "Expired"
142
  msgstr ""
143
 
144
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:845
145
  msgid "Hello,"
146
  msgstr ""
147
 
148
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:846
149
  msgid "Click the following link to log into the system:"
150
  msgstr ""
151
 
152
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:847
153
  msgid "Temporary Login Link"
154
  msgstr ""
155
 
156
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:26
157
  msgid "Users"
158
  msgstr ""
159
 
160
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:27
161
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:51
162
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:52
163
  msgid "Role"
164
  msgstr ""
165
 
166
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:28
167
  msgid "Last Logged In"
168
  msgstr ""
169
 
170
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:29
171
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:63
172
  msgid "Expiry"
173
  msgstr ""
174
 
175
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:30
176
  msgid "Actions"
177
  msgstr ""
178
 
179
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:48
180
  msgid "You have not created any temporary logins yet."
181
  msgstr ""
182
 
183
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:73
184
  msgid "Not yet logged in"
185
  msgstr ""
186
 
187
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:84
188
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:42
189
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:42
190
  msgid "Super Admin"
191
  msgstr ""
192
 
193
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:163
194
  msgid "Disable"
195
  msgstr ""
196
 
197
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:165
198
  msgid "Reactivate for one day"
199
  msgstr ""
200
 
201
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:168
202
  msgid "Delete"
203
  msgstr ""
204
 
205
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:169
206
  msgid "Edit"
207
  msgstr ""
208
 
209
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:173
210
  msgid "Email login link"
211
  msgstr ""
212
 
213
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:174
214
  msgid "Copy login link"
215
  msgstr ""
216
 
217
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/public/class-wp-temporary-login-without-password-public.php:50
218
  msgid "Token empty"
219
  msgstr ""
220
 
221
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/public/class-wp-temporary-login-without-password-public.php:51
222
  msgid "Authentication failed"
223
  msgstr ""
224
 
225
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/public/class-wp-temporary-login-without-password-public.php:116
226
  msgid "You don't have permission to access this page"
227
  msgstr ""
228
 
229
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:11
230
+ msgid "Settings"
231
+ msgstr ""
232
+
233
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:18
234
  msgid "Create New"
235
  msgstr ""
236
 
237
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:40
238
  msgid "Here's a temporary login link"
239
  msgstr ""
240
 
241
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:43
242
  msgid "Click To Copy"
243
  msgstr ""
244
 
245
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/admin-settings.php:47
246
  msgid ""
247
+ "User can directly login to WordPress admin panel without username and "
248
  "password by opening this link."
249
  msgstr ""
250
 
251
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:9
252
  msgid "Create a new Temporary Login"
253
  msgstr ""
254
 
255
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:14
256
  msgid "Email*"
257
  msgstr ""
258
 
259
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:23
260
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:23
261
  msgid "First Name"
262
  msgstr ""
263
 
264
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:32
265
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:32
266
  msgid "Last Name"
267
  msgstr ""
268
 
269
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:45
270
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:46
271
  msgid "Grant this user super admin privileges for the Network."
272
  msgstr ""
273
 
274
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:83
275
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/temporary-logins-settings.php:49
276
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:87
277
  msgid "Submit"
278
  msgstr ""
279
 
280
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:83
281
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:87
282
  msgid "or"
283
  msgstr ""
284
 
285
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/new-login.php:84
286
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:88
287
  msgid "Cancel"
288
  msgstr ""
289
 
290
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/temporary-logins-settings.php:9
291
  msgid "Temporary Login Settings"
292
  msgstr ""
293
 
294
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/temporary-logins-settings.php:14
295
  msgid "Visible Roles"
296
  msgstr ""
297
 
298
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/temporary-logins-settings.php:15
299
  msgid "select roles from which you want to create a temporary login"
300
  msgstr ""
301
 
302
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/temporary-logins-settings.php:26
303
  msgid "Default Role"
304
  msgstr ""
305
 
306
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/temporary-logins-settings.php:36
307
+ msgid "Default Expiry Time"
308
+ msgstr ""
309
+
310
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:9
311
  msgid "Update Temporary Login"
312
  msgstr ""
313
 
314
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:14
315
  msgid "Email"
316
  msgstr ""
317
 
318
+ #: ../../../../../repositories/GitLab/store-apps/temporary-login-without-password/templates/update-login.php:67
319
  msgid "Extend Expiry"
320
  msgstr ""
321
 
readme.txt CHANGED
@@ -1,12 +1,12 @@
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.5
7
- Stable tag: 1.5.8
8
- License: GPLv2 or later
9
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Create self-expiring, temporary admin accounts. Easily share direct login links (no need for username / password) with your developers or editors.
12
 
@@ -44,6 +44,11 @@ If you like Temporary Login Without Password, please leave a five star review on
44
 
45
  == Changelog ==
46
 
 
 
 
 
 
47
  **1.5.8 [2018-04-25]**
48
 
49
  * Fix: Format temporary login link email for Apple Mail. (Thanks to [@danielgm](https://wordpress.org/support/users/danielgm/))
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: 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: 4.9.7
7
+ Stable tag: 1.5.9
8
+ License: GPLv3
9
+ License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
11
  Create self-expiring, temporary admin accounts. Easily share direct login links (no need for username / password) with your developers or editors.
12
 
44
 
45
  == Changelog ==
46
 
47
+ **1.5.9 [2018-07-25]**
48
+
49
+ * Update: Added settings to set default expiration time. Now, admin don't have to select expiry time from drodown every time when they
50
+ create a new temporary login.
51
+
52
  **1.5.8 [2018-04-25]**
53
 
54
  * Fix: Format temporary login link email for Apple Mail. (Thanks to [@danielgm](https://wordpress.org/support/users/danielgm/))
templates/new-login.php CHANGED
@@ -65,7 +65,7 @@
65
  <td>
66
  <span id="expiry-date-selection">
67
  <select name="wtlwp_data[expiry]" id="new-user-expiry-time">
68
- <?php Wp_Temporary_Login_Without_Password_Common::get_expiry_duration_html( 'week' ); ?>
69
  </select>
70
  </span>
71
 
65
  <td>
66
  <span id="expiry-date-selection">
67
  <select name="wtlwp_data[expiry]" id="new-user-expiry-time">
68
+ <?php Wp_Temporary_Login_Without_Password_Common::get_expiry_duration_html( $default_expiry_time ); ?>
69
  </select>
70
  </span>
71
 
templates/temporary-logins-settings.php CHANGED
@@ -31,6 +31,16 @@
31
  </select>
32
  </td>
33
  </tr>
 
 
 
 
 
 
 
 
 
 
34
 
35
  <tr class="form-field">
36
  <th scope="row" class="wtlwp-form-row"><label for="temporary-login-settings"></label></th>
31
  </select>
32
  </td>
33
  </tr>
34
+ <tr class="form-field">
35
+ <th scope="row" class="wtlwp-form-row">
36
+ <label for="adduser-role"><?php echo esc_html__( 'Default Expiry Time', 'temporary-login-without-password' ); ?></label>
37
+ </th>
38
+ <td>
39
+ <select name="tlwp_settings_data[default_expiry_time]" id="default-expiry-time">
40
+ <?php Wp_Temporary_Login_Without_Password_Common::get_expiry_duration_html( $default_expiry_time, array('custom_date') ); ?>
41
+ </select>
42
+ </td>
43
+ </tr>
44
 
45
  <tr class="form-field">
46
  <th scope="row" class="wtlwp-form-row"><label for="temporary-login-settings"></label></th>
temporary-login-without-password.php CHANGED
@@ -3,16 +3,16 @@
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.8
7
  * Author: StoreApps
8
- * Author URI: http://storeapps.org
9
  * Requires at least: 3.0.1
10
- * Tested up to: 4.9.5
11
- * License: GPL-2.0+
12
- * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
13
  * Text Domain: temporary-login-without-password
14
- * Domain Path: /languages
15
- * Copyright (c) 2016, 2017 StoreApps, All right reserved
16
  *
17
  * @package Temporary Login Without Password
18
  */
@@ -26,7 +26,7 @@ if ( ! defined( 'WPINC' ) ) {
26
  * Define constants
27
  */
28
  define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
29
- define( 'WTLWP_PLUGIN_VERSION', '1.5.8' );
30
  define( 'WTLWP_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );
31
 
32
  /**
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.9
7
  * Author: StoreApps
8
+ * Author URI: https://storeapps.org
9
  * Requires at least: 3.0.1
10
+ * Tested up to: 4.9.7
11
+ * License: GPLv3
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-2018 StoreApps, All right reserved
16
  *
17
  * @package Temporary Login Without Password
18
  */
26
  * Define constants
27
  */
28
  define( 'WTLWP_PLUGIN_DIR', dirname( __FILE__ ) );
29
+ define( 'WTLWP_PLUGIN_VERSION', '1.5.9' );
30
  define( 'WTLWP_PLUGIN_BASE_NAME', plugin_basename( __FILE__ ) );
31
 
32
  /**