{"id":238068,"date":"2025-04-25T15:23:54","date_gmt":"2025-04-25T13:23:54","guid":{"rendered":"https:\/\/ketmarket.eu\/verify-2fa-code\/"},"modified":"2025-05-13T20:33:26","modified_gmt":"2025-05-13T18:33:26","slug":"verify-2fa-code","status":"publish","type":"page","link":"https:\/\/ketmarket.eu\/de\/verify-2fa-code\/","title":{"rendered":"verify-2fa-code"},"content":{"rendered":"\r\n<div class=\"twofa-enter-code\">\r\n    <h2>Enter your verification code<\/h2>\r\n\r\n    \r\n    <form method=\"post\">\r\n        <input type=\"text\" name=\"verification_code\" id=\"verification_code\" autocomplete=\"off\" inputmode=\"numeric\" required>\r\n        \r\n        <!-- Leeres Fehler-Element, wird durch JS bei Bedarf bef\u00fcllt -->\r\n        <div id=\"twofa-js-error\" class=\"twofa-error\" style=\"display: none;\"><\/div>\r\n        \r\n        <input type=\"submit\" value=\"Verify Code\" name=\"2fa_code_submit\">\r\n\r\n        <div class=\"twofa-links\">\r\n            <a class=\"left-link\" href=\"https:\/\/ketmarket.eu\/verify-2fa\">Go Back<\/a>\r\n            <a class=\"right-link\" href=\"https:\/\/ketmarket.eu\/verify-2fa-code?cancel_2fa=1\">Quit<\/a>\r\n        <\/div>\r\n    <\/form>\r\n<\/div>\r\n\r\n<!-- === Fokus und Fehlermeldung per JS === -->\r\n<script>\r\ndocument.addEventListener('DOMContentLoaded', function () {\r\n    const input = document.getElementById('verification_code');\r\n    if (input) {\r\n        input.scrollIntoView({ behavior: 'smooth', block: 'center' });\r\n        input.focus();\r\n    }\r\n\r\n    \/\/ Fehler aus der URL holen (z.\u202fB. ?error=invalid)\r\n    const urlParams = new URLSearchParams(window.location.search);\r\n    const error = urlParams.get('error');\r\n    const errorBox = document.getElementById('twofa-js-error');\r\n\r\n    if (errorBox && error) {\r\n        let message = '';\r\n        switch (error) {\r\n            case 'used':\r\n                message = '\u274c This backup code has already been used.';\r\n                break;\r\n            case 'invalid':\r\n                message = '\u274c Invalid or expired verification code.';\r\n                break;\r\n            case 'session':\r\n                message = '\u274c Session expired. Please try logging in again.';\r\n                break;\r\n            default:\r\n                message = '\u274c An unknown error occurred.';\r\n        }\r\n\r\n        \/\/ Fehlermeldung anzeigen + animieren\r\n        errorBox.textContent = message;\r\n        errorBox.style.display = 'block';\r\n        errorBox.style.opacity = 0;\r\n\r\n        \/\/ sanft einblenden\r\n        setTimeout(() => errorBox.style.opacity = 1, 50);\r\n\r\n        \/\/ nach 6 Sekunden automatisch ausblenden\r\n        setTimeout(() => {\r\n            errorBox.style.opacity = 0;\r\n            setTimeout(() => errorBox.style.display = 'none', 600);\r\n        }, 6000);\r\n    }\r\n});\r\n<\/script>\r\n\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":20,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":"[]","_tribe_ticket_has_attendee_info_fields":false,"ocean_post_layout":"full-screen","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","footnotes":""},"class_list":["post-238068","page","type-page","status-publish","hentry","entry","owp-thumbs-layout-horizontal","owp-btn-normal","owp-tabs-layout-horizontal","has-no-thumbnails","has-product-nav"],"_links":{"self":[{"href":"https:\/\/ketmarket.eu\/de\/wp-json\/wp\/v2\/pages\/238068","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ketmarket.eu\/de\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ketmarket.eu\/de\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ketmarket.eu\/de\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/ketmarket.eu\/de\/wp-json\/wp\/v2\/comments?post=238068"}],"version-history":[{"count":0,"href":"https:\/\/ketmarket.eu\/de\/wp-json\/wp\/v2\/pages\/238068\/revisions"}],"wp:attachment":[{"href":"https:\/\/ketmarket.eu\/de\/wp-json\/wp\/v2\/media?parent=238068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}