| @@ -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"> |