{"id":8181,"date":"2025-11-20T16:44:17","date_gmt":"2025-11-20T16:44:17","guid":{"rendered":"https:\/\/arieltrust.com\/portal\/?page_id=8181"},"modified":"2025-11-20T16:50:27","modified_gmt":"2025-11-20T16:50:27","slug":"forgot-password","status":"publish","type":"page","link":"https:\/\/arieltrust.com\/portal\/forgot-password\/","title":{"rendered":"Forgot password"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"8181\" class=\"elementor elementor-8181\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4c2ae1a elementor-section-height-min-height elementor-section-stretched elementor-section-boxed elementor-section-height-default elementor-section-items-middle\" data-id=\"4c2ae1a\" data-element_type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;,&quot;stretch_section&quot;:&quot;section-stretched&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-eebd2a4\" data-id=\"eebd2a4\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1f7f18b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1f7f18b\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0a6bd54\" data-id=\"0a6bd54\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-290c7ef elementor-widget elementor-widget-shortcode\" data-id=\"290c7ef\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\n    <div id=\"forgot-password-wrapper\">\n        <h3>Forgot Password<\/h3>\n\n        <form id=\"ajax-forgot-form\">\n            <div class=\"row\">\n                <div class=\"form-control\">\n                    <input type=\"email\" id=\"forgot_email\" placeholder=\"Enter your email\" required>\n                <\/div>\n                <div class=\"form-control\">\n                    <button type=\"submit\" class=\"forgot_password\">Send Reset Link<\/button>\n                <\/div>\n            <\/div>\n        <\/form>\n        <div id=\"forgot-response\"><\/div>\n    <\/div>\n\n    <script>\n    jQuery(document).ready(function($){\n\n        $(\"#ajax-forgot-form\").on(\"submit\", function(e){\n            e.preventDefault();\n\n            var email = $(\"#forgot_email\").val();\n\n            $.ajax({\n                url: \"https:\/\/arieltrust.com\/portal\/wp-admin\/admin-ajax.php\",\n                type: \"POST\",\n                data: {\n                    action: \"ajax_send_reset_link\",\n                    user_email: email\n                },\n                beforeSend: function(){\n                    $(\"#forgot-response\").html(\"<p>Processing...<\/p>\");\n                },\n                success: function(response){\n                    $(\"#forgot_email\").val(\"\");\n                    $(\"#forgot-response\").html(response);\n                     \/\/ If email was sent successfully \u2192 redirect\n                    if (response.includes(\"Reset password email sent! Please check your inbox.\") || response.includes(\"Custom reset password email sent\")) {\n                        \n                        setTimeout(function(){\n                            window.location.href = \"https:\/\/arieltrust.com\/portal\/login\/\";\n                        }, 1500); \/\/ redirect after 3 seconds\n                    }\n                }\n            });\n        });\n    });\n    <\/script>\n\n    <\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":454,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"class_list":["post-8181","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/arieltrust.com\/portal\/wp-json\/wp\/v2\/pages\/8181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arieltrust.com\/portal\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/arieltrust.com\/portal\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/arieltrust.com\/portal\/wp-json\/wp\/v2\/users\/454"}],"replies":[{"embeddable":true,"href":"https:\/\/arieltrust.com\/portal\/wp-json\/wp\/v2\/comments?post=8181"}],"version-history":[{"count":9,"href":"https:\/\/arieltrust.com\/portal\/wp-json\/wp\/v2\/pages\/8181\/revisions"}],"predecessor-version":[{"id":8194,"href":"https:\/\/arieltrust.com\/portal\/wp-json\/wp\/v2\/pages\/8181\/revisions\/8194"}],"wp:attachment":[{"href":"https:\/\/arieltrust.com\/portal\/wp-json\/wp\/v2\/media?parent=8181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}