| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Login Lockdown |
| 5 |
* https://wploginlockdown.com/ |
| 6 |
* (c) WebFactory Ltd, 2022 - 2024, www.webfactoryltd.com |
| 7 |
*/ |
| 8 |
|
| 9 |
class LoginLockdown_Tab_2FA extends LoginLockdown |
| 10 |
{ |
| 11 |
static function display() |
| 12 |
{ |
| 13 |
echo '<div class="tab-content">'; |
| 14 |
|
| 15 |
echo '<div class="notice-box-info"> |
| 16 |
The 2FA Features allows you to add an extra level of security to your website, requiring users logging in for the first time from a device to confirm their login by clicking a link that is emailed to them. Even if someone steals the username & password they still won\'t be able to login without access to the account email. <a href="#" class="open-pro-dialog" data-pro-feature="2fa">Get PRO now</a> to use the 2FA feature. |
| 17 |
</div>'; |
| 18 |
|
| 19 |
echo '<table class="form-table"><tbody>'; |
| 20 |
|
| 21 |
echo '<tr valign="top"> |
| 22 |
<th scope="row"><label for="2fa_email">Email Based<br>Two Factor Authentication</label><a title="This feature is available in the PRO version. Click for details." href="#" data-feature="2fa_email" class="open-upsell pro-label">PRO</a></th> |
| 23 |
<td>'; |
| 24 |
echo '<div class="open-upsell open-upsell-block" data-feature="2fa_email">'; |
| 25 |
LoginLockdown_Utility::create_toggle_switch('2fa_email', array('saved_value' => 0, 'option_key' => '')); |
| 26 |
echo '</div>'; |
| 27 |
echo '<br /><span>After the correct username & password are entered the user will receive an email with a one-time link to confirm the login.<br>In case somebody steals the username & password they still won\'t be able to login without access to the account email.</span>'; |
| 28 |
echo '</td></tr>'; |
| 29 |
|
| 30 |
echo '<tr><td></td><td>'; |
| 31 |
echo '<p class="submit"><a class="button button-primary button-large open-upsell" data-feature="2fa-save">Save Changes <i class="loginlockdown-icon loginlockdown-checkmark"></i></a></p>'; |
| 32 |
echo '</td></tr>'; |
| 33 |
|
| 34 |
echo '</tbody></table>'; |
| 35 |
|
| 36 |
echo '</div>'; |
| 37 |
} // display |
| 38 |
} // class LoginLockdown_Tab_2FA |
| 39 |
|