Version Description
- Fixed: Localization issue
Download this release
Release Info
Developer | storeapps |
Plugin | Temporary Login Without Password |
Version | 1.4.3 |
Comparing to | |
See all releases |
Code changes from version 1.4.2 to 1.4.3
- admin/class-wp-temporary-login-without-password-admin.php +20 -20
- includes/class-wp-temporary-login-without-password-common.php +10 -10
- includes/class-wp-temporary-login-without-password-i18n.php +1 -3
- includes/class-wp-temporary-login-without-password-layout.php +11 -11
- includes/class-wp-temporary-login-without-password.php +1 -1
- languages/temporary-login-without-password.pot +253 -0
- public/class-wp-temporary-login-without-password-public.php +3 -3
- readme.txt +5 -1
- templates/admin_settings.php +5 -5
- templates/new_login.php +7 -7
- temporary-login-without-password.php +2 -2
admin/class-wp-temporary-login-without-password-admin.php
CHANGED
@@ -15,7 +15,7 @@ class Wp_Temporary_Login_Without_Password_Admin {
|
|
15 |
|
16 |
public function enqueue_styles() {
|
17 |
wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/wp-temporary-login-without-password-admin.css', array(), $this->version, 'all' );
|
18 |
-
|
19 |
wp_enqueue_style('jquery-ui-css', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');
|
20 |
|
21 |
}
|
@@ -27,11 +27,11 @@ class Wp_Temporary_Login_Without_Password_Admin {
|
|
27 |
wp_enqueue_script( 'jquery' );
|
28 |
wp_enqueue_script( 'jquery-ui-core' );
|
29 |
wp_enqueue_script( 'jquery-ui-datepicker' );
|
30 |
-
|
31 |
$data = array(
|
32 |
'admin_ajax_url' => admin_url( 'admin-ajax.php', 'relative' )
|
33 |
);
|
34 |
-
|
35 |
wp_localize_script($this->plugin_name, 'data', $data);
|
36 |
|
37 |
}
|
@@ -39,7 +39,7 @@ class Wp_Temporary_Login_Without_Password_Admin {
|
|
39 |
public function admin_menu() {
|
40 |
$current_user_id = get_current_user_id();
|
41 |
if ( !Wp_Temporary_Login_Without_Password_Common::is_valid_temporary_login( $current_user_id ) ) {
|
42 |
-
add_users_page( __( 'Temporary Logins', '
|
43 |
}
|
44 |
|
45 |
}
|
@@ -252,40 +252,40 @@ class Wp_Temporary_Login_Without_Password_Admin {
|
|
252 |
$message_type = !empty( $_REQUEST[ 'wtlwp_message' ] ) ? $_REQUEST[ 'wtlwp_message' ] : 'default_error_message';
|
253 |
switch ( $message_type ) {
|
254 |
case 'user_creation_failed':
|
255 |
-
$message = __( 'User creation failed', '
|
256 |
break;
|
257 |
|
258 |
case 'unathorised_access':
|
259 |
-
$message = __( 'You do not have permission to create a temporary login', '
|
260 |
break;
|
261 |
|
262 |
case 'email_is_in_use':
|
263 |
-
$message = __( 'Email already is in use', '
|
264 |
break;
|
265 |
|
266 |
case 'empty_email':
|
267 |
-
$message = __( 'Please enter valid email address. Email field should not be empty', '
|
268 |
break;
|
269 |
|
270 |
case 'not_valid_email':
|
271 |
-
$message = __( 'Please enter valid email address', '
|
272 |
break;
|
273 |
|
274 |
case 'is_not_temporary_login':
|
275 |
-
$message = __( 'User you are trying to delete is not temporary', '
|
276 |
break;
|
277 |
|
278 |
case 'nonce_failed':
|
279 |
-
$message = __( 'Nonce failed', '
|
280 |
break;
|
281 |
|
282 |
case 'invalid_action':
|
283 |
-
$message = __( 'Invalid action', '
|
284 |
break;
|
285 |
|
286 |
case 'default_error_message':
|
287 |
default:
|
288 |
-
$message = __( 'Unknown error occured', '
|
289 |
break;
|
290 |
}// End switch().
|
291 |
$class = 'error';
|
@@ -293,23 +293,23 @@ class Wp_Temporary_Login_Without_Password_Admin {
|
|
293 |
$message_type = !empty( $_REQUEST[ 'wtlwp_message' ] ) ? $_REQUEST[ 'wtlwp_message' ] : 'default_success_message';
|
294 |
switch ( $message_type ) {
|
295 |
case 'user_created':
|
296 |
-
$message = __( 'Login created successfully!', '
|
297 |
break;
|
298 |
|
299 |
case 'user_deleted':
|
300 |
-
$message = __( 'Login deleted successfully!', '
|
301 |
break;
|
302 |
|
303 |
case 'login_disabled':
|
304 |
-
$message = __( 'Login disabled successfully!', '
|
305 |
break;
|
306 |
|
307 |
case 'login_enabled':
|
308 |
-
$message = __( 'Login enabled successfully!', '
|
309 |
break;
|
310 |
|
311 |
default:
|
312 |
-
$message = __( 'Success!', '
|
313 |
break;
|
314 |
}
|
315 |
|
@@ -364,9 +364,9 @@ class Wp_Temporary_Login_Without_Password_Admin {
|
|
364 |
// Change the footer text
|
365 |
if ( !get_option( 'tlwp_admin_footer_text_rated' ) ) {
|
366 |
/* translators: %s: five stars */
|
367 |
-
$footer_text = sprintf( __( 'If you like <strong>Temporary Login Without Password</strong> please leave us a %s rating. A huge thanks in advance!', '
|
368 |
} else {
|
369 |
-
$footer_text = sprintf(__( 'Thank you for using %s.', '
|
370 |
}
|
371 |
}
|
372 |
|
15 |
|
16 |
public function enqueue_styles() {
|
17 |
wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/wp-temporary-login-without-password-admin.css', array(), $this->version, 'all' );
|
18 |
+
|
19 |
wp_enqueue_style('jquery-ui-css', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');
|
20 |
|
21 |
}
|
27 |
wp_enqueue_script( 'jquery' );
|
28 |
wp_enqueue_script( 'jquery-ui-core' );
|
29 |
wp_enqueue_script( 'jquery-ui-datepicker' );
|
30 |
+
|
31 |
$data = array(
|
32 |
'admin_ajax_url' => admin_url( 'admin-ajax.php', 'relative' )
|
33 |
);
|
34 |
+
|
35 |
wp_localize_script($this->plugin_name, 'data', $data);
|
36 |
|
37 |
}
|
39 |
public function admin_menu() {
|
40 |
$current_user_id = get_current_user_id();
|
41 |
if ( !Wp_Temporary_Login_Without_Password_Common::is_valid_temporary_login( $current_user_id ) ) {
|
42 |
+
add_users_page( __( 'Temporary Logins', 'temporary-login-without-password' ), __( 'Temporary Logins', 'temporary-login-without-password' ), apply_filters( 'tempadmin_user_cap', 'manage_options' ), 'wp-temporary-login-without-password', array( __class__, 'admin_settings' ) );
|
43 |
}
|
44 |
|
45 |
}
|
252 |
$message_type = !empty( $_REQUEST[ 'wtlwp_message' ] ) ? $_REQUEST[ 'wtlwp_message' ] : 'default_error_message';
|
253 |
switch ( $message_type ) {
|
254 |
case 'user_creation_failed':
|
255 |
+
$message = __( 'User creation failed', 'temporary-login-without-password' );
|
256 |
break;
|
257 |
|
258 |
case 'unathorised_access':
|
259 |
+
$message = __( 'You do not have permission to create a temporary login', 'temporary-login-without-password' );
|
260 |
break;
|
261 |
|
262 |
case 'email_is_in_use':
|
263 |
+
$message = __( 'Email already is in use', 'temporary-login-without-password' );
|
264 |
break;
|
265 |
|
266 |
case 'empty_email':
|
267 |
+
$message = __( 'Please enter valid email address. Email field should not be empty', 'temporary-login-without-password' );
|
268 |
break;
|
269 |
|
270 |
case 'not_valid_email':
|
271 |
+
$message = __( 'Please enter valid email address', 'temporary-login-without-password' );
|
272 |
break;
|
273 |
|
274 |
case 'is_not_temporary_login':
|
275 |
+
$message = __( 'User you are trying to delete is not temporary', 'temporary-login-without-password' );
|
276 |
break;
|
277 |
|
278 |
case 'nonce_failed':
|
279 |
+
$message = __( 'Nonce failed', 'temporary-login-without-password' );
|
280 |
break;
|
281 |
|
282 |
case 'invalid_action':
|
283 |
+
$message = __( 'Invalid action', 'temporary-login-without-password' );
|
284 |
break;
|
285 |
|
286 |
case 'default_error_message':
|
287 |
default:
|
288 |
+
$message = __( 'Unknown error occured', 'temporary-login-without-password' );
|
289 |
break;
|
290 |
}// End switch().
|
291 |
$class = 'error';
|
293 |
$message_type = !empty( $_REQUEST[ 'wtlwp_message' ] ) ? $_REQUEST[ 'wtlwp_message' ] : 'default_success_message';
|
294 |
switch ( $message_type ) {
|
295 |
case 'user_created':
|
296 |
+
$message = __( 'Login created successfully!', 'temporary-login-without-password' );
|
297 |
break;
|
298 |
|
299 |
case 'user_deleted':
|
300 |
+
$message = __( 'Login deleted successfully!', 'temporary-login-without-password' );
|
301 |
break;
|
302 |
|
303 |
case 'login_disabled':
|
304 |
+
$message = __( 'Login disabled successfully!', 'temporary-login-without-password' );
|
305 |
break;
|
306 |
|
307 |
case 'login_enabled':
|
308 |
+
$message = __( 'Login enabled successfully!', 'temporary-login-without-password' );
|
309 |
break;
|
310 |
|
311 |
default:
|
312 |
+
$message = __( 'Success!', 'temporary-login-without-password' );
|
313 |
break;
|
314 |
}
|
315 |
|
364 |
// Change the footer text
|
365 |
if ( !get_option( 'tlwp_admin_footer_text_rated' ) ) {
|
366 |
/* translators: %s: five stars */
|
367 |
+
$footer_text = sprintf( __( 'If you like <strong>Temporary Login Without Password</strong> please leave us a %s rating. A huge thanks in advance!', 'temporary-login-without-password' ), '<a href="https://wordpress.org/support/plugin/temporary-login-without-password/reviews?rate=5#new-post" target="_blank" class="tlwp-rating-link" data-rated="' . esc_attr__( 'Thank You :)', 'temporary-login-without-password' ) . '">★★★★★</a>' );
|
368 |
} else {
|
369 |
+
$footer_text = sprintf(__( 'Thank you for using %s.', 'temporary-login-without-password' ), '<a href="https://wordpress.org/plugins/temporary-login-without-password/" target="_blank">Temporary Login Without Password</a>');
|
370 |
}
|
371 |
}
|
372 |
|
includes/class-wp-temporary-login-without-password-common.php
CHANGED
@@ -80,13 +80,13 @@ class Wp_Temporary_Login_Without_Password_Common {
|
|
80 |
public static function get_expiry_options( $key = '' ) {
|
81 |
|
82 |
$expiry_duration = array(
|
83 |
-
'3_days' => __( 'Three Days', '
|
84 |
-
'day' => __( 'One Day', '
|
85 |
-
'3_hours' => __( 'Three Hours', '
|
86 |
-
'hour' => __( 'One Hour', '
|
87 |
-
'week' => __( 'One Week', '
|
88 |
-
'month' => __( 'One Month', '
|
89 |
-
'custom_date' => __( 'Custom Date', '
|
90 |
);
|
91 |
|
92 |
if ( empty( $key ) ) {
|
@@ -445,7 +445,7 @@ class Wp_Temporary_Login_Without_Password_Common {
|
|
445 |
}
|
446 |
|
447 |
if ( $etime < 1 ) {
|
448 |
-
return __( 'Expired', '
|
449 |
}
|
450 |
|
451 |
$a = array(
|
@@ -473,9 +473,9 @@ class Wp_Temporary_Login_Without_Password_Common {
|
|
473 |
$r = round( $d );
|
474 |
|
475 |
if ( $ago ) {
|
476 |
-
return __( sprintf( '%d %s ago', $r, ($r > 1 ? $a_plural[ $str ] : $str ) ), '
|
477 |
} else {
|
478 |
-
return __( sprintf( '%d %s remaining', $r, ($r > 1 ? $a_plural[ $str ] : $str ) ), '
|
479 |
}
|
480 |
}
|
481 |
}
|
80 |
public static function get_expiry_options( $key = '' ) {
|
81 |
|
82 |
$expiry_duration = array(
|
83 |
+
'3_days' => __( 'Three Days', 'temporary-login-without-password' ),
|
84 |
+
'day' => __( 'One Day', 'temporary-login-without-password' ),
|
85 |
+
'3_hours' => __( 'Three Hours', 'temporary-login-without-password' ),
|
86 |
+
'hour' => __( 'One Hour', 'temporary-login-without-password' ),
|
87 |
+
'week' => __( 'One Week', 'temporary-login-without-password' ),
|
88 |
+
'month' => __( 'One Month', 'temporary-login-without-password' ),
|
89 |
+
'custom_date' => __( 'Custom Date', 'temporary-login-without-password' )
|
90 |
);
|
91 |
|
92 |
if ( empty( $key ) ) {
|
445 |
}
|
446 |
|
447 |
if ( $etime < 1 ) {
|
448 |
+
return __( 'Expired', 'temporary-login-without-password' );
|
449 |
}
|
450 |
|
451 |
$a = array(
|
473 |
$r = round( $d );
|
474 |
|
475 |
if ( $ago ) {
|
476 |
+
return __( sprintf( '%d %s ago', $r, ($r > 1 ? $a_plural[ $str ] : $str ) ), 'temporary-login-without-password' );
|
477 |
} else {
|
478 |
+
return __( sprintf( '%d %s remaining', $r, ($r > 1 ? $a_plural[ $str ] : $str ) ), 'temporary-login-without-password' );
|
479 |
}
|
480 |
}
|
481 |
}
|
includes/class-wp-temporary-login-without-password-i18n.php
CHANGED
@@ -5,12 +5,10 @@
|
|
5 |
*/
|
6 |
class Wp_Temporary_Login_Without_Password_i18n {
|
7 |
|
8 |
-
static $text_domain = 'wp-temporary-login-without-password';
|
9 |
-
|
10 |
public function load_plugin_textdomain() {
|
11 |
|
12 |
load_plugin_textdomain(
|
13 |
-
|
14 |
);
|
15 |
}
|
16 |
|
5 |
*/
|
6 |
class Wp_Temporary_Login_Without_Password_i18n {
|
7 |
|
|
|
|
|
8 |
public function load_plugin_textdomain() {
|
9 |
|
10 |
load_plugin_textdomain(
|
11 |
+
'temporary-login-without-password', false, dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
|
12 |
);
|
13 |
}
|
14 |
|
includes/class-wp-temporary-login-without-password-layout.php
CHANGED
@@ -6,11 +6,11 @@ class Wp_Temporary_Login_Without_Password_Layout {
|
|
6 |
|
7 |
$row = '';
|
8 |
|
9 |
-
$row .= '<th class="manage-column column-details" colspan="2">' . __( 'Users', '
|
10 |
-
$row .= '<th class="manage-column column-email">' . __( 'Role', '
|
11 |
-
$row .= '<th class="manage-column column-expired">' . __( 'Last Logged In', '
|
12 |
-
$row .= '<th class="manage-column column-expired">' . __( 'Expiry', '
|
13 |
-
$row .= '<th class="manage-column column-expired">' . __( 'Actions', '
|
14 |
|
15 |
return $row;
|
16 |
}
|
@@ -21,7 +21,7 @@ class Wp_Temporary_Login_Without_Password_Layout {
|
|
21 |
|
22 |
$row .= '<tr class="tempadmin-single-user-row tempadmin-empty-users-row standard">';
|
23 |
$row .= '<td colspan="6">';
|
24 |
-
$row .= '<span class="description">' . __( 'You have not created any temporary logins yet.', '
|
25 |
$row .= '</td>';
|
26 |
$row .= '</tr>';
|
27 |
|
@@ -39,7 +39,7 @@ class Wp_Temporary_Login_Without_Password_Layout {
|
|
39 |
$token = get_user_meta( $user->ID, '_wtlwp_token', true );
|
40 |
$last_login_time = get_user_meta( $user->ID, '_wtlwp_last_login', true );
|
41 |
|
42 |
-
$last_login_str = __( 'Not yet logged in', '
|
43 |
if ( ! empty( $last_login_time ) ) {
|
44 |
$last_login_str = Wp_Temporary_Login_Without_Password_Common::time_elapsed_string( $last_login_time, true );
|
45 |
}
|
@@ -104,13 +104,13 @@ class Wp_Temporary_Login_Without_Password_Layout {
|
|
104 |
$enable_login_url = Wp_Temporary_Login_Without_Password_Common::get_manage_login_url( $user_id, 'enable' );
|
105 |
|
106 |
if ( strtolower( $wtlwp_status ) == 'expired' ) {
|
107 |
-
$action_row .= '<span class="enable"><a title="' . __( 'Reactivate for one day', '
|
108 |
} elseif ( strtolower( $wtlwp_status ) == 'active' ) {
|
109 |
-
$action_row .= '<span class="disable"><a title="' . __( 'Disable', '
|
110 |
}
|
111 |
|
112 |
-
$action_row .= '<span class="edit"><a title="' . __( 'Delete', '
|
113 |
-
$action_row .= '<span class="edit"><span id="text-' . $user->ID . '" class="dashicons dashicons-admin-links wtlwp-copy-to-clipboard" title="' . __( 'Copy login link', '
|
114 |
$action_row .= '<span id="copied-text-' . $user->ID . '" class="copied-text-message"></span>';
|
115 |
$action_row .= '</div>';
|
116 |
|
6 |
|
7 |
$row = '';
|
8 |
|
9 |
+
$row .= '<th class="manage-column column-details" colspan="2">' . __( 'Users', 'temporary-login-without-password' ) . '</th>';
|
10 |
+
$row .= '<th class="manage-column column-email">' . __( 'Role', 'temporary-login-without-password' ) . '</th>';
|
11 |
+
$row .= '<th class="manage-column column-expired">' . __( 'Last Logged In', 'temporary-login-without-password' ) . '</th>';
|
12 |
+
$row .= '<th class="manage-column column-expired">' . __( 'Expiry', 'temporary-login-without-password' ) . '</th>';
|
13 |
+
$row .= '<th class="manage-column column-expired">' . __( 'Actions', 'temporary-login-without-password' ) . '</th>';
|
14 |
|
15 |
return $row;
|
16 |
}
|
21 |
|
22 |
$row .= '<tr class="tempadmin-single-user-row tempadmin-empty-users-row standard">';
|
23 |
$row .= '<td colspan="6">';
|
24 |
+
$row .= '<span class="description">' . __( 'You have not created any temporary logins yet.', 'temporary-login-without-password' ) . '</span>';
|
25 |
$row .= '</td>';
|
26 |
$row .= '</tr>';
|
27 |
|
39 |
$token = get_user_meta( $user->ID, '_wtlwp_token', true );
|
40 |
$last_login_time = get_user_meta( $user->ID, '_wtlwp_last_login', true );
|
41 |
|
42 |
+
$last_login_str = __( 'Not yet logged in', 'temporary-login-without-password' );
|
43 |
if ( ! empty( $last_login_time ) ) {
|
44 |
$last_login_str = Wp_Temporary_Login_Without_Password_Common::time_elapsed_string( $last_login_time, true );
|
45 |
}
|
104 |
$enable_login_url = Wp_Temporary_Login_Without_Password_Common::get_manage_login_url( $user_id, 'enable' );
|
105 |
|
106 |
if ( strtolower( $wtlwp_status ) == 'expired' ) {
|
107 |
+
$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>';
|
108 |
} elseif ( strtolower( $wtlwp_status ) == 'active' ) {
|
109 |
+
$action_row .= '<span class="disable"><a title="' . __( 'Disable', 'temporary-login-without-password' ) . '" href="' . $disable_login_url . '"><span class="dashicons dashicons-unlock"></span></a></span>';
|
110 |
}
|
111 |
|
112 |
+
$action_row .= '<span class="edit"><a title="' . __( 'Delete', 'temporary-login-without-password' ) . '" href="' . $delete_login_url . '"><span class="dashicons dashicons-no"></span></a></span>';
|
113 |
+
$action_row .= '<span class="edit"><span id="text-' . $user->ID . '" class="dashicons dashicons-admin-links wtlwp-copy-to-clipboard" title="' . __( 'Copy login link', 'temporary-login-without-password' ) . '" data-clipboard-text="' . Wp_Temporary_Login_Without_Password_Common::get_login_url( $user->ID ) . '"></span></span>';
|
114 |
$action_row .= '<span id="copied-text-' . $user->ID . '" class="copied-text-message"></span>';
|
115 |
$action_row .= '</div>';
|
116 |
|
includes/class-wp-temporary-login-without-password.php
CHANGED
@@ -8,7 +8,7 @@ class Wp_Temporary_Login_Without_Password {
|
|
8 |
|
9 |
public function __construct() {
|
10 |
|
11 |
-
$this->plugin_name = '
|
12 |
$this->version = '1.4.2';
|
13 |
|
14 |
$this->load_dependencies();
|
8 |
|
9 |
public function __construct() {
|
10 |
|
11 |
+
$this->plugin_name = 'temporary-login-without-password';
|
12 |
$this->version = '1.4.2';
|
13 |
|
14 |
$this->load_dependencies();
|
languages/temporary-login-without-password.pot
ADDED
@@ -0,0 +1,253 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#, fuzzy
|
2 |
+
msgid ""
|
3 |
+
msgstr ""
|
4 |
+
"Project-Id-Version: PACKAGE VERSION\n"
|
5 |
+
"Report-Msgid-Bugs-To: \n"
|
6 |
+
"POT-Creation-Date: 2017-08-03 05:43+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 |
+
#: temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:42
|
18 |
+
#: temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:42
|
19 |
+
#: temporary-login-without-password/templates/admin_settings.php:3
|
20 |
+
msgid "Temporary Logins"
|
21 |
+
msgstr ""
|
22 |
+
|
23 |
+
#: temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:255
|
24 |
+
msgid "User creation failed"
|
25 |
+
msgstr ""
|
26 |
+
|
27 |
+
#: temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:259
|
28 |
+
msgid "You do not have permission to create a temporary login"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:263
|
32 |
+
msgid "Email already is in use"
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:267
|
36 |
+
msgid "Please enter valid email address. Email field should not be empty"
|
37 |
+
msgstr ""
|
38 |
+
|
39 |
+
#: temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:271
|
40 |
+
msgid "Please enter valid email address"
|
41 |
+
msgstr ""
|
42 |
+
|
43 |
+
#: temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:275
|
44 |
+
msgid "User you are trying to delete is not temporary"
|
45 |
+
msgstr ""
|
46 |
+
|
47 |
+
#: temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:279
|
48 |
+
msgid "Nonce failed"
|
49 |
+
msgstr ""
|
50 |
+
|
51 |
+
#: temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:283
|
52 |
+
msgid "Invalid action"
|
53 |
+
msgstr ""
|
54 |
+
|
55 |
+
#: temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:288
|
56 |
+
msgid "Unknown error occured"
|
57 |
+
msgstr ""
|
58 |
+
|
59 |
+
#: temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:296
|
60 |
+
msgid "Login created successfully!"
|
61 |
+
msgstr ""
|
62 |
+
|
63 |
+
#: temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:300
|
64 |
+
msgid "Login deleted successfully!"
|
65 |
+
msgstr ""
|
66 |
+
|
67 |
+
#: temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:304
|
68 |
+
msgid "Login disabled successfully!"
|
69 |
+
msgstr ""
|
70 |
+
|
71 |
+
#: temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:308
|
72 |
+
msgid "Login enabled successfully!"
|
73 |
+
msgstr ""
|
74 |
+
|
75 |
+
#: temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:312
|
76 |
+
msgid "Success!"
|
77 |
+
msgstr ""
|
78 |
+
|
79 |
+
#. %s: five stars
|
80 |
+
#: temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:367
|
81 |
+
#, php-format
|
82 |
+
msgid ""
|
83 |
+
"If you like <strong>Temporary Login Without Password</strong> please leave "
|
84 |
+
"us a %s rating. A huge thanks in advance!"
|
85 |
+
msgstr ""
|
86 |
+
|
87 |
+
#: temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:367
|
88 |
+
msgid "Thank You :)"
|
89 |
+
msgstr ""
|
90 |
+
|
91 |
+
#: temporary-login-without-password/admin/class-wp-temporary-login-without-password-admin.php:369
|
92 |
+
#, php-format
|
93 |
+
msgid "Thank you for using %s."
|
94 |
+
msgstr ""
|
95 |
+
|
96 |
+
#: temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:83
|
97 |
+
msgid "Three Days"
|
98 |
+
msgstr ""
|
99 |
+
|
100 |
+
#: temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:84
|
101 |
+
msgid "One Day"
|
102 |
+
msgstr ""
|
103 |
+
|
104 |
+
#: temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:85
|
105 |
+
msgid "Three Hours"
|
106 |
+
msgstr ""
|
107 |
+
|
108 |
+
#: temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:86
|
109 |
+
msgid "One Hour"
|
110 |
+
msgstr ""
|
111 |
+
|
112 |
+
#: temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:87
|
113 |
+
msgid "One Week"
|
114 |
+
msgstr ""
|
115 |
+
|
116 |
+
#: temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:88
|
117 |
+
msgid "One Month"
|
118 |
+
msgstr ""
|
119 |
+
|
120 |
+
#: temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:89
|
121 |
+
msgid "Custom Date"
|
122 |
+
msgstr ""
|
123 |
+
|
124 |
+
#: temporary-login-without-password/includes/class-wp-temporary-login-without-password-common.php:448
|
125 |
+
msgid "Expired"
|
126 |
+
msgstr ""
|
127 |
+
|
128 |
+
#: temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:9
|
129 |
+
msgid "Users"
|
130 |
+
msgstr ""
|
131 |
+
|
132 |
+
#: temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:10
|
133 |
+
#: temporary-login-without-password/templates/new_login.php:19
|
134 |
+
msgid "Role"
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
+
#: temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:11
|
138 |
+
msgid "Last Logged In"
|
139 |
+
msgstr ""
|
140 |
+
|
141 |
+
#: temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:12
|
142 |
+
#: temporary-login-without-password/templates/new_login.php:27
|
143 |
+
msgid "Expiry"
|
144 |
+
msgstr ""
|
145 |
+
|
146 |
+
#: temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:13
|
147 |
+
msgid "Actions"
|
148 |
+
msgstr ""
|
149 |
+
|
150 |
+
#: temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:24
|
151 |
+
msgid "You have not created any temporary logins yet."
|
152 |
+
msgstr ""
|
153 |
+
|
154 |
+
#: temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:42
|
155 |
+
msgid "Not yet logged in"
|
156 |
+
msgstr ""
|
157 |
+
|
158 |
+
#: temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:107
|
159 |
+
msgid "Reactivate for one day"
|
160 |
+
msgstr ""
|
161 |
+
|
162 |
+
#: temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:109
|
163 |
+
msgid "Disable"
|
164 |
+
msgstr ""
|
165 |
+
|
166 |
+
#: temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:112
|
167 |
+
msgid "Delete"
|
168 |
+
msgstr ""
|
169 |
+
|
170 |
+
#: temporary-login-without-password/includes/class-wp-temporary-login-without-password-layout.php:113
|
171 |
+
msgid "Copy login link"
|
172 |
+
msgstr ""
|
173 |
+
|
174 |
+
#: temporary-login-without-password/public/class-wp-temporary-login-without-password-public.php:16
|
175 |
+
msgid "Token empty"
|
176 |
+
msgstr ""
|
177 |
+
|
178 |
+
#: temporary-login-without-password/public/class-wp-temporary-login-without-password-public.php:17
|
179 |
+
msgid "Authentication failed"
|
180 |
+
msgstr ""
|
181 |
+
|
182 |
+
#: temporary-login-without-password/public/class-wp-temporary-login-without-password-public.php:74
|
183 |
+
msgid "You don't have permission to access this page"
|
184 |
+
msgstr ""
|
185 |
+
|
186 |
+
#: temporary-login-without-password/templates/admin_settings.php:3
|
187 |
+
msgid "Create New"
|
188 |
+
msgstr ""
|
189 |
+
|
190 |
+
#: temporary-login-without-password/templates/admin_settings.php:13
|
191 |
+
msgid "Here's a temporary login link"
|
192 |
+
msgstr ""
|
193 |
+
|
194 |
+
#: temporary-login-without-password/templates/admin_settings.php:15
|
195 |
+
msgid "Click To Copy"
|
196 |
+
msgstr ""
|
197 |
+
|
198 |
+
#: temporary-login-without-password/templates/admin_settings.php:17
|
199 |
+
msgid ""
|
200 |
+
"User can directly login to wordpress admin panel without username and "
|
201 |
+
"password by opening this link."
|
202 |
+
msgstr ""
|
203 |
+
|
204 |
+
#: temporary-login-without-password/templates/new_login.php:1
|
205 |
+
msgid "Create a new Temporary Login"
|
206 |
+
msgstr ""
|
207 |
+
|
208 |
+
#: temporary-login-without-password/templates/new_login.php:5
|
209 |
+
msgid "Email*"
|
210 |
+
msgstr ""
|
211 |
+
|
212 |
+
#: temporary-login-without-password/templates/new_login.php:10
|
213 |
+
msgid "First Name"
|
214 |
+
msgstr ""
|
215 |
+
|
216 |
+
#: temporary-login-without-password/templates/new_login.php:15
|
217 |
+
msgid "Last Name"
|
218 |
+
msgstr ""
|
219 |
+
|
220 |
+
#: temporary-login-without-password/templates/new_login.php:44
|
221 |
+
msgid "Submit"
|
222 |
+
msgstr ""
|
223 |
+
|
224 |
+
#: temporary-login-without-password/templates/new_login.php:44
|
225 |
+
msgid "or"
|
226 |
+
msgstr ""
|
227 |
+
|
228 |
+
#: temporary-login-without-password/templates/new_login.php:44
|
229 |
+
msgid "Cancel"
|
230 |
+
msgstr ""
|
231 |
+
|
232 |
+
#. Name of the plugin
|
233 |
+
msgid "Temporary Login Without Password"
|
234 |
+
msgstr ""
|
235 |
+
|
236 |
+
#. Description of the plugin
|
237 |
+
msgid ""
|
238 |
+
"Create a temporary login link with any role using which one can access to "
|
239 |
+
"your sytem without username and password for limited period of time."
|
240 |
+
msgstr ""
|
241 |
+
|
242 |
+
#. URI of the plugin
|
243 |
+
msgid ""
|
244 |
+
"http://www.storeapps.org/create-secure-login-without-password-for-wordpress/"
|
245 |
+
msgstr ""
|
246 |
+
|
247 |
+
#. Author of the plugin
|
248 |
+
msgid "StoreApps"
|
249 |
+
msgstr ""
|
250 |
+
|
251 |
+
#. Author URI of the plugin
|
252 |
+
msgid "http://storeapps.org"
|
253 |
+
msgstr ""
|
public/class-wp-temporary-login-without-password-public.php
CHANGED
@@ -13,8 +13,8 @@ class Wp_Temporary_Login_Without_Password_Public {
|
|
13 |
public static function get_error_messages( $error_code ) {
|
14 |
|
15 |
$error_messages = array(
|
16 |
-
'token' => __( 'Token empty', '
|
17 |
-
'unauth' => __( 'Authentication failed', '
|
18 |
);
|
19 |
|
20 |
if ( ! empty( $error_code ) ) {
|
@@ -71,7 +71,7 @@ class Wp_Temporary_Login_Without_Password_Public {
|
|
71 |
$bloked_pages = Wp_Temporary_Login_Without_Password_Common::get_blocked_pages();
|
72 |
$page = ! empty( $_GET['page'] ) ? $_GET['page'] : '';
|
73 |
if ( ( ! empty( $page ) && in_array( $page, $bloked_pages )) || ( ! empty( $pagenow ) && in_array( $pagenow, $bloked_pages )) ) {
|
74 |
-
wp_die( __( "You don't have permission to access this page", '
|
75 |
}
|
76 |
}
|
77 |
}
|
13 |
public static function get_error_messages( $error_code ) {
|
14 |
|
15 |
$error_messages = array(
|
16 |
+
'token' => __( 'Token empty', 'temporary-login-without-password' ),
|
17 |
+
'unauth' => __( 'Authentication failed', 'temporary-login-without-password' ),
|
18 |
);
|
19 |
|
20 |
if ( ! empty( $error_code ) ) {
|
71 |
$bloked_pages = Wp_Temporary_Login_Without_Password_Common::get_blocked_pages();
|
72 |
$page = ! empty( $_GET['page'] ) ? $_GET['page'] : '';
|
73 |
if ( ( ! empty( $page ) && in_array( $page, $bloked_pages )) || ( ! empty( $pagenow ) && in_array( $pagenow, $bloked_pages )) ) {
|
74 |
+
wp_die( __( "You don't have permission to access this page", 'temporary-login-without-password' ) );
|
75 |
}
|
76 |
}
|
77 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: admin login, custom 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, passwordless login, password less login
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 4.8
|
7 |
-
Stable tag: 1.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -40,6 +40,10 @@ If you like Temporary Login Without Password, please leave a five star review on
|
|
40 |
|
41 |
== Changelog ==
|
42 |
|
|
|
|
|
|
|
|
|
43 |
= 1.4.2 =
|
44 |
|
45 |
- Bug Fixed: Uncaught Error: Call to undefined function wc_enqueue_js().
|
4 |
Tags: admin login, custom 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, passwordless login, password less login
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 4.8
|
7 |
+
Stable tag: 1.4.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
40 |
|
41 |
== Changelog ==
|
42 |
|
43 |
+
= 1.4.3 =
|
44 |
+
|
45 |
+
- Fixed: Localization issue
|
46 |
+
|
47 |
= 1.4.2 =
|
48 |
|
49 |
- Bug Fixed: Uncaught Error: Call to undefined function wc_enqueue_js().
|
templates/admin_settings.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php ?>
|
2 |
<div class="wrap wtlwp-settings-wrap">
|
3 |
-
<h2> <?php echo __( 'Temporary Logins', '
|
4 |
<div class="wtlwp-settings">
|
5 |
<!-- Add New Form Start -->
|
6 |
<div class="wrap new-wtlwp-form" id="new-wtlwp-form">
|
@@ -10,13 +10,13 @@
|
|
10 |
<?php if ( ! empty( $wtlwp_generated_url ) ) { ?>
|
11 |
|
12 |
<div class="wrap generated-wtlwp-login-link" id="generated-wtlwp-login-link">
|
13 |
-
<p><?php _e( "Here's a temporary login link", '
|
14 |
<input id="wtlwp-click-to-copy-btn" type="text" class="wtlwp-wide-input" value="<?php echo $wtlwp_generated_url; ?>">
|
15 |
-
<button class="wtlwp-click-to-copy-btn" data-clipboard-action="copy" data-clipboard-target="#wtlwp-click-to-copy-btn"><?php echo __( 'Click To Copy', '
|
16 |
<span id="copied-text-message-wtlwp-click-to-copy-btn"></span>
|
17 |
-
<p><?php _e( 'User can directly login to wordpress admin panel without username and password by opening this link.', '
|
18 |
if ( ! empty( $user_email ) ) {
|
19 |
-
echo __( sprintf( " <a href='mailto:%s'>Email</a> copied login link to user.", $user_email ), '
|
20 |
}
|
21 |
?>
|
22 |
</p>
|
1 |
<?php ?>
|
2 |
<div class="wrap wtlwp-settings-wrap">
|
3 |
+
<h2> <?php echo __( 'Temporary Logins', 'temporary-login-without-password' ); ?> <span class="page-title-action" id="add-new-wtlwp-form-button"><?php _e( 'Create New', 'temporary-login-without-password' ); ?></span> </h2>
|
4 |
<div class="wtlwp-settings">
|
5 |
<!-- Add New Form Start -->
|
6 |
<div class="wrap new-wtlwp-form" id="new-wtlwp-form">
|
10 |
<?php if ( ! empty( $wtlwp_generated_url ) ) { ?>
|
11 |
|
12 |
<div class="wrap generated-wtlwp-login-link" id="generated-wtlwp-login-link">
|
13 |
+
<p><?php _e( "Here's a temporary login link", 'temporary-login-without-password' ); ?></p>
|
14 |
<input id="wtlwp-click-to-copy-btn" type="text" class="wtlwp-wide-input" value="<?php echo $wtlwp_generated_url; ?>">
|
15 |
+
<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>
|
16 |
<span id="copied-text-message-wtlwp-click-to-copy-btn"></span>
|
17 |
+
<p><?php _e( 'User can directly login to wordpress admin panel without username and password by opening this link.', 'temporary-login-without-password' );
|
18 |
if ( ! empty( $user_email ) ) {
|
19 |
+
echo __( sprintf( " <a href='mailto:%s'>Email</a> copied login link to user.", $user_email ), 'temporary-login-without-password' );
|
20 |
}
|
21 |
?>
|
22 |
</p>
|
templates/new_login.php
CHANGED
@@ -1,22 +1,22 @@
|
|
1 |
-
<h2> <?php echo __( 'Create a new Temporary Login', '
|
2 |
<form method="post">
|
3 |
<table class="form-table wtlwp-form">
|
4 |
<tr class="form-field form-required">
|
5 |
-
<th scope="row" class="wtlwp-form-row"> <label for="user_email"><?php echo __( 'Email*', '
|
6 |
<td><input name="wtlwp_data[user_email]" type="text" id="user_email" value="" aria-required="true" autocapitalize="none" autocorrect="off" maxlength="60" class="wtlwp-form-input"/></td>
|
7 |
</tr>
|
8 |
|
9 |
<tr class="form-field form-required">
|
10 |
-
<th scope="row" class="wtlwp-form-row"> <label for="user_first_name"><?php echo __( 'First Name', '
|
11 |
<td><input name="wtlwp_data[user_first_name]" type="text" id="user_first_name" value="" aria-required="true" autocapitalize="none" autocorrect="off" maxlength="60" class="wtlwp-form-input"/></td>
|
12 |
</tr>
|
13 |
|
14 |
<tr class="form-field form-required">
|
15 |
-
<th scope="row" class="wtlwp-form-row"> <label for="user_last_name"><?php echo __( 'Last Name', '
|
16 |
<td><input name="wtlwp_data[user_last_name]" type="text" id="user_last_name" value="" aria-required="true" autocapitalize="none" autocorrect="off" maxlength="60" class="wtlwp-form-input"/></td>
|
17 |
</tr>
|
18 |
<tr class="form-field">
|
19 |
-
<th scope="row" class="wtlwp-form-row"><label for="adduser-role"><?php echo __( 'Role', '
|
20 |
<td><select name="wtlwp_data[role]" id="user-role">
|
21 |
<?php wp_dropdown_roles( 'administrator' ); ?>
|
22 |
</select>
|
@@ -24,7 +24,7 @@
|
|
24 |
</tr>
|
25 |
|
26 |
<tr class="form-field">
|
27 |
-
<th scope="row" class="wtlwp-form-row"><label for="adduser-role"><?php echo __( 'Expiry', '
|
28 |
<td>
|
29 |
<span id="expiry-date-selection">
|
30 |
<select name="wtlwp_data[expiry]" id="user-expiry-time">
|
@@ -41,7 +41,7 @@
|
|
41 |
|
42 |
<tr class="form-field">
|
43 |
<th scope="row" class="wtlwp-form-row"><label for="adduser-role"></label></th>
|
44 |
-
<td><p class="submit"><input type="submit" class="button button-primary wtlwp-form-submit-button" value="<?php _e( 'Submit', '
|
45 |
</td>
|
46 |
</tr>
|
47 |
<?php wp_nonce_field( 'wtlwp_generate_login_url', 'wtlwp-nonce', true, true ); ?>
|
1 |
+
<h2> <?php echo __( 'Create a new Temporary Login', 'temporary-login-without-password' ); ?></h2>
|
2 |
<form method="post">
|
3 |
<table class="form-table wtlwp-form">
|
4 |
<tr class="form-field form-required">
|
5 |
+
<th scope="row" class="wtlwp-form-row"> <label for="user_email"><?php echo __( 'Email*', 'temporary-login-without-password' ); ?> </label></th>
|
6 |
<td><input name="wtlwp_data[user_email]" type="text" id="user_email" value="" aria-required="true" autocapitalize="none" autocorrect="off" maxlength="60" class="wtlwp-form-input"/></td>
|
7 |
</tr>
|
8 |
|
9 |
<tr class="form-field form-required">
|
10 |
+
<th scope="row" class="wtlwp-form-row"> <label for="user_first_name"><?php echo __( 'First Name', 'temporary-login-without-password' ); ?> </label></th>
|
11 |
<td><input name="wtlwp_data[user_first_name]" type="text" id="user_first_name" value="" aria-required="true" autocapitalize="none" autocorrect="off" maxlength="60" class="wtlwp-form-input"/></td>
|
12 |
</tr>
|
13 |
|
14 |
<tr class="form-field form-required">
|
15 |
+
<th scope="row" class="wtlwp-form-row"> <label for="user_last_name"><?php echo __( 'Last Name', 'temporary-login-without-password' ); ?> </label></th>
|
16 |
<td><input name="wtlwp_data[user_last_name]" type="text" id="user_last_name" value="" aria-required="true" autocapitalize="none" autocorrect="off" maxlength="60" class="wtlwp-form-input"/></td>
|
17 |
</tr>
|
18 |
<tr class="form-field">
|
19 |
+
<th scope="row" class="wtlwp-form-row"><label for="adduser-role"><?php echo __( 'Role', 'temporary-login-without-password' ); ?></label></th>
|
20 |
<td><select name="wtlwp_data[role]" id="user-role">
|
21 |
<?php wp_dropdown_roles( 'administrator' ); ?>
|
22 |
</select>
|
24 |
</tr>
|
25 |
|
26 |
<tr class="form-field">
|
27 |
+
<th scope="row" class="wtlwp-form-row"><label for="adduser-role"><?php echo __( 'Expiry', 'temporary-login-without-password' ); ?></label></th>
|
28 |
<td>
|
29 |
<span id="expiry-date-selection">
|
30 |
<select name="wtlwp_data[expiry]" id="user-expiry-time">
|
41 |
|
42 |
<tr class="form-field">
|
43 |
<th scope="row" class="wtlwp-form-row"><label for="adduser-role"></label></th>
|
44 |
+
<td><p class="submit"><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"> <?php _e( 'or', 'temporary-login-without-password' ); ?> <span class="cancel-new-login-form" id="cancel-new-login-form"><?php _e( 'Cancel', 'temporary-login-without-password' ); ?></span></p>
|
45 |
</td>
|
46 |
</tr>
|
47 |
<?php wp_nonce_field( 'wtlwp_generate_login_url', 'wtlwp-nonce', true, true ); ?>
|
temporary-login-without-password.php
CHANGED
@@ -4,14 +4,14 @@
|
|
4 |
* Plugin Name: Temporary Login Without Password
|
5 |
* Plugin URI: http://www.storeapps.org/create-secure-login-without-password-for-wordpress/
|
6 |
* 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.
|
7 |
-
* Version: 1.4.
|
8 |
* Author: StoreApps
|
9 |
* Author URI: http://storeapps.org
|
10 |
* Requires at least: 3.3
|
11 |
* Tested up to: 4.8
|
12 |
* License: GPL-2.0+
|
13 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
14 |
-
* Text Domain:
|
15 |
* Domain Path: /languages
|
16 |
* Copyright (c) 2016, 2017 StoreApps, All right reserved
|
17 |
*/
|
4 |
* Plugin Name: Temporary Login Without Password
|
5 |
* Plugin URI: http://www.storeapps.org/create-secure-login-without-password-for-wordpress/
|
6 |
* 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.
|
7 |
+
* Version: 1.4.3
|
8 |
* Author: StoreApps
|
9 |
* Author URI: http://storeapps.org
|
10 |
* Requires at least: 3.3
|
11 |
* Tested up to: 4.8
|
12 |
* License: GPL-2.0+
|
13 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
14 |
+
* Text Domain: temporary-login-without-password
|
15 |
* Domain Path: /languages
|
16 |
* Copyright (c) 2016, 2017 StoreApps, All right reserved
|
17 |
*/
|