PluginProbe
Loginizer / 2.1.1
Loginizer v2.1.1
2.1.1 2.1.0 2.0.9 2.0.8 1.9.8 1.9.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 All 75 releases
← All changes | main/settings/passwordless.php +10 -4 2.0.2 → 2.1.1 View file →
@@ -13,9 +13,9 @@
13 13 wp_die('Sorry, but you do not have permissions to change settings.');
14 14 }
15 15
16 16 if(!loginizer_is_premium() && count($_POST) > 0){
17 - $lz_error['not_in_free'] = __('This feature is not available in the Free version. <a href="'.LOGINIZER_PRICING_URL.'" target="_blank" style="text-decoration:none; color:green;"><b>Upgrade to Pro</b></a>', 'loginizer');
17 + $lz_error['not_in_free'] = __('This feature is not available in the Free version.', 'loginizer').' <a href="'.LOGINIZER_PRICING_URL.'" target="_blank" style="text-decoration:none; color:green;"><b>'.esc_html__('Upgrade to Pro', 'loginizer').'</b></a>';
18 18 return loginizer_page_passwordless_T();
19 19 }
20 20
21 21 /* Make sure post was from this page */
@@ -32,8 +32,9 @@
32 32 $option['passwordless_html'] = (int) lz_optpost('lz_passwordless_html');
33 33 $option['passwordless_redirect'] = esc_url_raw($_POST['lz_passwordless_redirect']);
34 34 $option['passwordless_redirect_for'] = !empty($_POST['lz_passwordless_redirect_for']) ? map_deep($_POST['lz_passwordless_redirect_for'], 'sanitize_text_field') : [];
35 35 $option['passwordless_disabled_for'] = !empty($_POST['lz_passwordless_disabled_for']) ? map_deep(wp_unslash($_POST['lz_passwordless_disabled_for']), 'sanitize_text_field') : [];
36 + $option['epl_email_only'] = (int) lz_optpost('epl_email_only');
36 37
37 38 // Is there an error ?
38 39 if(!empty($lz_error)){
39 40 return loginizer_page_passwordless_T();
@@ -112,11 +113,16 @@
112 113 <input type="checkbox" value="1" name="email_pass_less" id="email_pass_less" <?php echo lz_POSTchecked('email_pass_less', (empty($loginizer['email_pass_less']) ? false : true)); echo (defined('SITEPAD') ? 'disabled="disabled"' : '') ?> />
113 114 </td>
114 115 </tr>
115 116 <tr>
116 - <td colspan="2" valign="top">
117 - <?php echo __('If enabled, the login screen will just ask for the username <b>OR</b> email address of the user. If such a user exists, an email with a <b>One Time Login </b> link will be sent to the email address of the user. The link will be valid for 10 minutes only.', 'loginizer'); ?><br><br>
118 - <?php echo __('If a wrong username/email is given, the brute force checker will prevent any brute force attempt !', 'loginizer'); ?>
117 + <td scope="row" valign="top" style="width:350px !important">
118 + <label for="epl_email_only"><?php echo __('Accept Email Only', 'loginizer'); ?> <span class="exp" style="font-weight:400;"><em><?php esc_html_e('Recommended', 'loginizer'); ?></em></span></label><br>
119 + <span class="exp"><?php echo __('When enabled, users must log in with their email address; usernames will not be accepted.', 'loginizer');?></span><br>
120 +
121 + </td>
122 + <td>
123 + <input type="checkbox" value="1" name="epl_email_only" id="epl_email_only" <?php echo lz_POSTchecked('epl_email_only', (empty($loginizer['epl_email_only']) ? false : true)); ?> />
124 + <p class="description"><?php echo __('If a wrong username/email is given, the brute force checker will prevent any brute force attempt !', 'loginizer'); ?></p>
119 125 </td>
120 126 </tr>
121 127 <tr>
122 128 <td scope="row" valign="top">