{"id":1862,"date":"2022-09-18T13:22:10","date_gmt":"2022-09-18T13:22:10","guid":{"rendered":"https:\/\/shaplakanon.com\/wpsupport\/?p=1862"},"modified":"2022-09-18T13:22:13","modified_gmt":"2022-09-18T13:22:13","slug":"how-to-enable-two-factor-authentication-for-your-website","status":"publish","type":"post","link":"https:\/\/shaplakanon.com\/wpsupport\/how-to-enable-two-factor-authentication-for-your-website\/","title":{"rendered":"How to enable two factor authentication for your website"},"content":{"rendered":"\n<p>Plugin Name: <a href=\"https:\/\/wordpress.org\/plugins\/two-factor\/\" target=\"_blank\" rel=\"noreferrer noopener\">Two-Factor<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/ps.w.org\/two-factor\/assets\/screenshot-3.png?rev=2218359\" alt=\"\"\/><\/figure>\n\n\n\n<p>Use the \u201cTwo-Factor Options\u201d section under \u201cUsers\u201d \u2192 \u201cYour Profile\u201d to enable and configure one or multiple two-factor authentication providers for your account:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Email codes<\/li><li>Time Based One-Time Passwords (TOTP)<\/li><li>FIDO Universal 2nd Factor (U2F)<\/li><li>Backup Codes<\/li><li>Dummy Method (only for testing purposes)<\/li><\/ul>\n\n\n\n<p>For more history, see&nbsp;<a href=\"https:\/\/georgestephanis.wordpress.com\/2013\/08\/14\/two-cents-on-two-factor\/\">this post<\/a>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">ACTIONS &amp; FILTERS<\/h4>\n\n\n\n<p>Here is a list of action and filter hooks provided by the plugin:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><code>two_factor_providers<\/code>&nbsp;filter overrides the available two-factor providers such as email and time-based one-time passwords. Array values are PHP classnames of the two-factor providers.<\/li><li><code>two_factor_enabled_providers_for_user<\/code>&nbsp;filter overrides the list of two-factor providers enabled for a user. First argument is an array of enabled provider classnames as values, the second argument is the user ID.<\/li><li><code>two_factor_user_authenticated<\/code>&nbsp;action which receives the logged in&nbsp;<code>WP_User<\/code>&nbsp;object as the first argument for determining the logged in user right after the authentication workflow.<\/li><li><code>two_factor_token_ttl<\/code>&nbsp;filter overrides the time interval in seconds that an email token is considered after generation. Accepts the time in seconds as the first argument and the ID of the&nbsp;<code>WP_User<\/code>&nbsp;object being authenticated.<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Plugin Name: Two-Factor Use the \u201cTwo-Factor Options\u201d section under \u201cUsers\u201d \u2192 \u201cYour Profile\u201d to enable and configure one or multiple<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[157,340,56],"class_list":["post-1862","post","type-post","status-publish","format-standard","hentry","category-plugins","tag-wordpress-help","tag-wordpress-maintenance-service","tag-wordpress-support"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to enable two factor authentication for your website - WordPress Support<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/shaplakanon.com\/wpsupport\/how-to-enable-two-factor-authentication-for-your-website\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to enable two factor authentication for your website - WordPress Support\" \/>\n<meta property=\"og:description\" content=\"Plugin Name: Two-Factor Use the \u201cTwo-Factor Options\u201d section under \u201cUsers\u201d \u2192 \u201cYour Profile\u201d to enable and configure one or multiple\" \/>\n<meta property=\"og:url\" content=\"https:\/\/shaplakanon.com\/wpsupport\/how-to-enable-two-factor-authentication-for-your-website\/\" \/>\n<meta property=\"og:site_name\" content=\"WordPress Support\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/getwpsupport\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-18T13:22:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-18T13:22:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ps.w.org\/two-factor\/assets\/screenshot-3.png?rev=2218359\" \/>\n<meta name=\"author\" content=\"ShaplaKanon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ruhul24\" \/>\n<meta name=\"twitter:site\" content=\"@ruhul24\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ShaplaKanon\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/how-to-enable-two-factor-authentication-for-your-website\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/how-to-enable-two-factor-authentication-for-your-website\\\/\"},\"author\":{\"name\":\"ShaplaKanon\",\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/#\\\/schema\\\/person\\\/f5f224239283c27426dadc2e4cc9a825\"},\"headline\":\"How to enable two factor authentication for your website\",\"datePublished\":\"2022-09-18T13:22:10+00:00\",\"dateModified\":\"2022-09-18T13:22:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/how-to-enable-two-factor-authentication-for-your-website\\\/\"},\"wordCount\":191,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/how-to-enable-two-factor-authentication-for-your-website\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ps.w.org\\\/two-factor\\\/assets\\\/screenshot-3.png?rev=2218359\",\"keywords\":[\"wordpress help\",\"wordpress maintenance service\",\"wordpress support\"],\"articleSection\":[\"plugins\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/how-to-enable-two-factor-authentication-for-your-website\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/how-to-enable-two-factor-authentication-for-your-website\\\/\",\"url\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/how-to-enable-two-factor-authentication-for-your-website\\\/\",\"name\":\"How to enable two factor authentication for your website - WordPress Support\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/how-to-enable-two-factor-authentication-for-your-website\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/how-to-enable-two-factor-authentication-for-your-website\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ps.w.org\\\/two-factor\\\/assets\\\/screenshot-3.png?rev=2218359\",\"datePublished\":\"2022-09-18T13:22:10+00:00\",\"dateModified\":\"2022-09-18T13:22:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/how-to-enable-two-factor-authentication-for-your-website\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/how-to-enable-two-factor-authentication-for-your-website\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/how-to-enable-two-factor-authentication-for-your-website\\\/#primaryimage\",\"url\":\"https:\\\/\\\/ps.w.org\\\/two-factor\\\/assets\\\/screenshot-3.png?rev=2218359\",\"contentUrl\":\"https:\\\/\\\/ps.w.org\\\/two-factor\\\/assets\\\/screenshot-3.png?rev=2218359\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/how-to-enable-two-factor-authentication-for-your-website\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to enable two factor authentication for your website\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/#website\",\"url\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/\",\"name\":\"WordPress Support\",\"description\":\"Wordpress Repair, migration, speed optimization\",\"publisher\":{\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/#organization\",\"name\":\"WordPress Support\",\"url\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/05\\\/cropped-logo-9674824.png\",\"contentUrl\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2022\\\/05\\\/cropped-logo-9674824.png\",\"width\":274,\"height\":55,\"caption\":\"WordPress Support\"},\"image\":{\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/facebook.com\\\/getwpsupport\\\/\",\"https:\\\/\\\/x.com\\\/ruhul24\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/#\\\/schema\\\/person\\\/f5f224239283c27426dadc2e4cc9a825\",\"name\":\"ShaplaKanon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ef2c8f93a0558c2047555f674c8746b22988ace93eba9262d198d0a28236ce97?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ef2c8f93a0558c2047555f674c8746b22988ace93eba9262d198d0a28236ce97?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ef2c8f93a0558c2047555f674c8746b22988ace93eba9262d198d0a28236ce97?s=96&d=mm&r=g\",\"caption\":\"ShaplaKanon\"},\"sameAs\":[\"https:\\\/\\\/shaplakanon.com\\\/wdc\\\/\"],\"url\":\"https:\\\/\\\/shaplakanon.com\\\/wpsupport\\\/author\\\/sabahat\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to enable two factor authentication for your website - WordPress Support","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/shaplakanon.com\/wpsupport\/how-to-enable-two-factor-authentication-for-your-website\/","og_locale":"en_US","og_type":"article","og_title":"How to enable two factor authentication for your website - WordPress Support","og_description":"Plugin Name: Two-Factor Use the \u201cTwo-Factor Options\u201d section under \u201cUsers\u201d \u2192 \u201cYour Profile\u201d to enable and configure one or multiple","og_url":"https:\/\/shaplakanon.com\/wpsupport\/how-to-enable-two-factor-authentication-for-your-website\/","og_site_name":"WordPress Support","article_publisher":"https:\/\/facebook.com\/getwpsupport\/","article_published_time":"2022-09-18T13:22:10+00:00","article_modified_time":"2022-09-18T13:22:13+00:00","og_image":[{"url":"https:\/\/ps.w.org\/two-factor\/assets\/screenshot-3.png?rev=2218359","type":"","width":"","height":""}],"author":"ShaplaKanon","twitter_card":"summary_large_image","twitter_creator":"@ruhul24","twitter_site":"@ruhul24","twitter_misc":{"Written by":"ShaplaKanon","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/shaplakanon.com\/wpsupport\/how-to-enable-two-factor-authentication-for-your-website\/#article","isPartOf":{"@id":"https:\/\/shaplakanon.com\/wpsupport\/how-to-enable-two-factor-authentication-for-your-website\/"},"author":{"name":"ShaplaKanon","@id":"https:\/\/shaplakanon.com\/wpsupport\/#\/schema\/person\/f5f224239283c27426dadc2e4cc9a825"},"headline":"How to enable two factor authentication for your website","datePublished":"2022-09-18T13:22:10+00:00","dateModified":"2022-09-18T13:22:13+00:00","mainEntityOfPage":{"@id":"https:\/\/shaplakanon.com\/wpsupport\/how-to-enable-two-factor-authentication-for-your-website\/"},"wordCount":191,"commentCount":0,"publisher":{"@id":"https:\/\/shaplakanon.com\/wpsupport\/#organization"},"image":{"@id":"https:\/\/shaplakanon.com\/wpsupport\/how-to-enable-two-factor-authentication-for-your-website\/#primaryimage"},"thumbnailUrl":"https:\/\/ps.w.org\/two-factor\/assets\/screenshot-3.png?rev=2218359","keywords":["wordpress help","wordpress maintenance service","wordpress support"],"articleSection":["plugins"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/shaplakanon.com\/wpsupport\/how-to-enable-two-factor-authentication-for-your-website\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/shaplakanon.com\/wpsupport\/how-to-enable-two-factor-authentication-for-your-website\/","url":"https:\/\/shaplakanon.com\/wpsupport\/how-to-enable-two-factor-authentication-for-your-website\/","name":"How to enable two factor authentication for your website - WordPress Support","isPartOf":{"@id":"https:\/\/shaplakanon.com\/wpsupport\/#website"},"primaryImageOfPage":{"@id":"https:\/\/shaplakanon.com\/wpsupport\/how-to-enable-two-factor-authentication-for-your-website\/#primaryimage"},"image":{"@id":"https:\/\/shaplakanon.com\/wpsupport\/how-to-enable-two-factor-authentication-for-your-website\/#primaryimage"},"thumbnailUrl":"https:\/\/ps.w.org\/two-factor\/assets\/screenshot-3.png?rev=2218359","datePublished":"2022-09-18T13:22:10+00:00","dateModified":"2022-09-18T13:22:13+00:00","breadcrumb":{"@id":"https:\/\/shaplakanon.com\/wpsupport\/how-to-enable-two-factor-authentication-for-your-website\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/shaplakanon.com\/wpsupport\/how-to-enable-two-factor-authentication-for-your-website\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/shaplakanon.com\/wpsupport\/how-to-enable-two-factor-authentication-for-your-website\/#primaryimage","url":"https:\/\/ps.w.org\/two-factor\/assets\/screenshot-3.png?rev=2218359","contentUrl":"https:\/\/ps.w.org\/two-factor\/assets\/screenshot-3.png?rev=2218359"},{"@type":"BreadcrumbList","@id":"https:\/\/shaplakanon.com\/wpsupport\/how-to-enable-two-factor-authentication-for-your-website\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/shaplakanon.com\/wpsupport\/"},{"@type":"ListItem","position":2,"name":"How to enable two factor authentication for your website"}]},{"@type":"WebSite","@id":"https:\/\/shaplakanon.com\/wpsupport\/#website","url":"https:\/\/shaplakanon.com\/wpsupport\/","name":"WordPress Support","description":"Wordpress Repair, migration, speed optimization","publisher":{"@id":"https:\/\/shaplakanon.com\/wpsupport\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/shaplakanon.com\/wpsupport\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/shaplakanon.com\/wpsupport\/#organization","name":"WordPress Support","url":"https:\/\/shaplakanon.com\/wpsupport\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/shaplakanon.com\/wpsupport\/#\/schema\/logo\/image\/","url":"https:\/\/shaplakanon.com\/wpsupport\/wp-content\/uploads\/sites\/2\/2022\/05\/cropped-logo-9674824.png","contentUrl":"https:\/\/shaplakanon.com\/wpsupport\/wp-content\/uploads\/sites\/2\/2022\/05\/cropped-logo-9674824.png","width":274,"height":55,"caption":"WordPress Support"},"image":{"@id":"https:\/\/shaplakanon.com\/wpsupport\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/getwpsupport\/","https:\/\/x.com\/ruhul24"]},{"@type":"Person","@id":"https:\/\/shaplakanon.com\/wpsupport\/#\/schema\/person\/f5f224239283c27426dadc2e4cc9a825","name":"ShaplaKanon","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ef2c8f93a0558c2047555f674c8746b22988ace93eba9262d198d0a28236ce97?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ef2c8f93a0558c2047555f674c8746b22988ace93eba9262d198d0a28236ce97?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ef2c8f93a0558c2047555f674c8746b22988ace93eba9262d198d0a28236ce97?s=96&d=mm&r=g","caption":"ShaplaKanon"},"sameAs":["https:\/\/shaplakanon.com\/wdc\/"],"url":"https:\/\/shaplakanon.com\/wpsupport\/author\/sabahat\/"}]}},"_links":{"self":[{"href":"https:\/\/shaplakanon.com\/wpsupport\/wp-json\/wp\/v2\/posts\/1862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shaplakanon.com\/wpsupport\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shaplakanon.com\/wpsupport\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shaplakanon.com\/wpsupport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shaplakanon.com\/wpsupport\/wp-json\/wp\/v2\/comments?post=1862"}],"version-history":[{"count":1,"href":"https:\/\/shaplakanon.com\/wpsupport\/wp-json\/wp\/v2\/posts\/1862\/revisions"}],"predecessor-version":[{"id":1863,"href":"https:\/\/shaplakanon.com\/wpsupport\/wp-json\/wp\/v2\/posts\/1862\/revisions\/1863"}],"wp:attachment":[{"href":"https:\/\/shaplakanon.com\/wpsupport\/wp-json\/wp\/v2\/media?parent=1862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shaplakanon.com\/wpsupport\/wp-json\/wp\/v2\/categories?post=1862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shaplakanon.com\/wpsupport\/wp-json\/wp\/v2\/tags?post=1862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}