{"id":1808,"date":"2024-12-17T10:47:10","date_gmt":"2024-12-17T09:47:10","guid":{"rendered":"https:\/\/wpmastertoolkit.com\/module\/authentification-a-deux-facteurs\/"},"modified":"2024-12-30T11:16:29","modified_gmt":"2024-12-30T10:16:29","slug":"authentification-a-deux-facteurs","status":"publish","type":"module","link":"https:\/\/wpmastertoolkit.com\/en\/module\/two-factor-authentication\/","title":{"rendered":"Two-factor authentication"},"content":{"rendered":"<h1 class=\"wp-block-heading\">Introduction to dual authentication with WPMasterToolKit<\/h1>\n\n\n\n<p>The security of connections to a WordPress site is a major concern for site administrators. To meet this need, we've integrated a dual authentication module (2FA) into <strong>WPMasterToolKit<\/strong>. This feature enhances security by adding an extra step to the login process, protecting your site against brute-force attacks and unauthorized access. This module replaces the need to install a third-party plugin dedicated to dual authentication.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Which plugin can this module replace?<\/h2>\n\n\n\n<p>The module <strong>Two Factor Authentication<\/strong> from <strong>WPMasterToolKit<\/strong> can replace popular plugins such as <strong>Two Factor Authentication by WP Plugins<\/strong>, <strong>Google Authenticator<\/strong>or similar 2FA-based solutions. The advantage here is that this module is part of the WPMasterToolKit ecosystem, guaranteeing optimum compatibility with the plugin's other functionalities.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Main features of the module<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Flexible authentication methods :<\/strong><br>Currently, the included method is sending a unique code by email, but the structure is extensible for other methods.<\/li>\n\n\n\n<li><strong>Activation by user role :<\/strong><br>You can activate dual authentication only for specific roles (e.g. administrators or editors).<\/li>\n\n\n\n<li><strong>Customize settings :<\/strong><br>Administrators can configure authentication methods directly from the WordPress dashboard.<figure class=\"wp-block-image size-large\"><img alt=\"WordPress security menu with authentication options.\" fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"622\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-18-1024x622.png\" class=\"wp-image-2786\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-18-1024x622.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-18-300x182.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-18-768x467.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-18.png 1261w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li>\n\n\n\n<li><strong>Checking the login page :<\/strong><br>A simple but secure validation process enables users to complete their connection by entering the code sent by email.<\/li>\n\n\n\n<li><strong>Optimized user interface :<\/strong><br>The module offers a neat interface for administrators in the dashboard, as well as an intuitive user experience when logging in.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">How to use this module<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Module activation<\/h3>\n\n\n\n<p>To activate the module, go to the WPMasterToolKit settings page and enable the \"Two Factor Authentication\" module. Once activated, a dedicated sub-menu will appear in the settings.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Settings configuration<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to the submenu <strong>Two Factor Authentication<\/strong>.<figure class=\"wp-block-image size-large\"><img alt=\"Two-factor authentication interface for WordPress.\" decoding=\"async\" width=\"1024\" height=\"406\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-17-1024x406.png\" class=\"wp-image-2784\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-17-1024x406.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-17-300x119.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-17-768x304.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-17.png 1275w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li>\n\n\n\n<li>Activate dual authentication for the desired user roles. For example, check \"Administrator\" to protect only accounts with full access to the site.<\/li>\n\n\n\n<li>Activate or deactivate the available authentication methods. By default, the \"Email\" method is enabled.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">User experience<\/h3>\n\n\n\n<p>When a user attempts to log in, a modal window opens after entering their login details. This window prompts the user to choose a method (for example, to receive a code by e-mail).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"WordPress login with two-factor authentication.\" decoding=\"async\" width=\"1024\" height=\"700\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-19-1024x700.png\" class=\"wp-image-2787\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-19-1024x700.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-19-300x205.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-19-768x525.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-19.png 1274w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Once the code has been emailed to the user, all they have to do is copy and paste it into the popup window.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img alt=\"Email containing a secure connection code.\" loading=\"lazy\" decoding=\"async\" width=\"957\" height=\"218\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-21.png\" class=\"wp-image-2789\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-21.png 957w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-21-300x68.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-21-768x175.png 768w\" sizes=\"(max-width: 957px) 100vw, 957px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"WordPress two-factor authentication screen.\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"697\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-20-1024x697.png\" class=\"wp-image-2788\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-20-1024x697.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-20-300x204.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-20-768x523.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-20.png 1271w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">User management<\/h3>\n\n\n\n<p>Administrators can also manage user authentication preferences directly in their WordPress profiles.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Technical choices behind this module<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Using WordPress hooks :<\/strong><br>The module uses hooks such as <code data-no-auto-translation=\"\">login_form<\/code> and <code data-no-auto-translation=\"\">wp_authenticate_user<\/code> to integrate directly into the WordPress login process. This ensures native compatibility without disrupting other features.<\/li>\n\n\n\n<li><strong>Enhanced security with nonces :<\/strong><br>All AJAX actions and administration forms use nonces to prevent CSRF (Cross-Site Request Forgery) attacks.<\/li>\n\n\n\n<li><strong>Scalability :<\/strong><br>The module is designed to be scalable. Developers can use hooks such as <code data-no-auto-translation=\"\">wpmastertoolkit_two_factor_authentication_email_html<\/code> to personalize emails or add new authentication methods.<\/li>\n\n\n\n<li><strong>Native WordPress compatibility :<\/strong><br>The module uses WordPress APIs such as <code data-no-auto-translation=\"\">wp_mail<\/code> for sending emails and user metadata for storing temporary codes.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The module <strong>Two Factor Authentication<\/strong> from WPMasterToolKit is a lightweight, high-performance solution for strengthening the security of your WordPress site. It features advanced protection without the need for third-party plugins, while integrating seamlessly with the WordPress administration interface. Thanks to its flexibility and detailed settings, it meets the security needs of all types of site, from personal blogs to corporate sites.<\/p>","protected":false},"excerpt":{"rendered":"<p>Enhance the security of your WordPress site with WPMasterToolKit's dual authentication module. This module adds an extra step to the login process, such as sending a unique code by email, to effectively protect your site against unauthorized access. Easy to configure and user role-activated, it replaces third-party plugins dedicated to 2FA while integrating seamlessly with the WordPress interface. Discover a secure, high-performance and scalable solution for all types of sites.<\/p>","protected":false},"featured_media":0,"parent":0,"template":"","meta":{"_acf_changed":true,"_seopress_robots_primary_cat":"","_seopress_titles_title":"S\u00e9curisez WordPress : 2FA int\u00e9gr\u00e9 avec WPMasterToolKit","_seopress_titles_desc":"Augmentez la s\u00e9curit\u00e9 de votre site WordPress avec la 2FA de WPMasterToolKit, prot\u00e9geant contre les acc\u00e8s non autoris\u00e9s sans besoin de plugins tiers.","_seopress_robots_index":"","_surecart_dashboard_logo_width":"180px","_surecart_dashboard_show_logo":true,"_surecart_dashboard_navigation_orders":true,"_surecart_dashboard_navigation_invoices":true,"_surecart_dashboard_navigation_subscriptions":true,"_surecart_dashboard_navigation_downloads":true,"_surecart_dashboard_navigation_billing":true,"_surecart_dashboard_navigation_account":true},"class_list":["post-1808","module","type-module","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module\/1808","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module"}],"about":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/types\/module"}],"wp:attachment":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/media?parent=1808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}