{"id":558,"date":"2025-03-08T21:35:02","date_gmt":"2025-03-08T21:35:02","guid":{"rendered":"https:\/\/endofenthalpyonline.com\/?page_id=558"},"modified":"2025-03-09T04:08:13","modified_gmt":"2025-03-09T04:08:13","slug":"recover-account","status":"publish","type":"page","link":"https:\/\/endofenthalpyonline.com\/index.php\/recover-account\/","title":{"rendered":"Recover account"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"558\" class=\"elementor elementor-558\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-7a060e0 e-con-full e-flex e-con e-parent\" data-id=\"7a060e0\" data-element_type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-8187331 elementor-widget__width-initial elementor-widget elementor-widget-html\" data-id=\"8187331\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\r\n<style>\r\n    .recoveraccountbutton {\r\n        color: green;\r\n        background-color: #000000AA;\r\n        border-color: black;\r\n    }\r\n\r\n        .recoveraccountbutton:hover {\r\n            background-color: green;\r\n        }\r\n\r\n    .body {\r\n        background-attachment: scroll;\r\n        background-image: url(https:\/\/endofenthalpyonline.com\/wp-content\/uploads\/public\/oldpaper.png);\r\n    }\r\n\r\n    .container {\r\n        font-family: 'Lumanosimo', cursive;\r\n        transform: translateX(0%);\r\n        display: flex;\r\n        align-items: center;\r\n        padding-top: 20%;\r\n        height: 65%;\r\n        width: 80%;\r\n        background-image: url(logginscreenbackground.png);\r\n        background-size: 100% auto;\r\n        background-repeat: no-repeat;\r\n        flex-direction: column;\r\n    }\r\n\r\n\r\n    .login-form {\r\n        transform: translateX(%);\r\n        width: 50%;\r\n        height: 70%;\r\n        text-align: center;\r\n        padding-right: 1%;\r\n    }\r\n\r\n    .errormessage {\r\n        color: red;\r\n    }\r\n\r\n    .User, .pass {\r\n        width: 100%;\r\n    }\r\n\r\n    video {\r\n        position: fixed;\r\n        top: 0;\r\n        left: 0;\r\n        width: 100%;\r\n        height: 100%;\r\n        object-fit: cover;\r\n        z-index: -1; \/* Set a negative z-index to place it behind other content *\/\r\n    }\r\n<\/style>\r\n<script>\r\n    function readyStateChangeHandler(xhttp) {\r\n\r\n        console.log(\"here\");\r\n        console.log(xhttp.responseText);\r\n        if (xhttp.readyState == 4) {\r\n            console.log(\"here\");\r\n            \/\/ readyState = 4 means DONE\r\n            if (xhttp.status == 200) {\r\n                \/\/ status = 200 means OK\r\n                console.log(xhttp.responseText);\r\n                if (xhttp.responseText == \"account found please check your email for the  reset link \") {\r\n                    console.log(\"okay\");\r\n                    warrning.innerHTML = xhttp.responseText;\r\n                    document.getElementById(\"sfortohideid\").innerHTML = \"\";\/\/hide button on success\r\n                    warrning.style.color = \"black\";\r\n                } else {\r\n                    warrning = document.getElementById(\"errormessage\");\r\n                    if (xhttp.responseText != \"error\") {\r\n                        localStorage.setItem(\"resettoken\", xhttp.responseText);\r\n                    }\r\n                    warrning.innerHTML = xhttp.responseText;\r\n\r\n                }\r\n            }\r\n        } else {\r\n            \/\/ status is NOT OK\r\n            console.log(String(xhttp.status));\r\n        }\r\n    }\r\n    function formvalidNowrealsubmit(email) {\r\n        \/\/.\/routes\/email\r\n\r\n        localStorage.setItem(\"resetpasswordemailtoken\", email);\r\n        var data = { 'email': email };\r\n        var xhttp = new XMLHttpRequest();\r\n        \/\/ create a handler for the readyState change\r\n\r\n        xhttp.onreadystatechange = function () {\r\n            readyStateChangeHandler(xhttp);\r\n        };\r\n\r\n\r\n\r\n\r\n        \/\/ making query by async call\r\n\r\n        xhttp.open(\"POST\", \"https:\/\/endofenthalpyonline.com:1447\/email\/recoveraccount\", true);\r\n        xhttp.setRequestHeader(\"Content-Type\", \"application\/json;charset=UTF-8\");\r\n        console.log(JSON.stringify(data));\r\n        xhttp.send(JSON.stringify(data));\r\n\r\n\r\n    }\r\n    function submitform() {\r\n        warrning = document.getElementById(\"errormessage\");\r\n        warrning.innerHTML = \"\";\r\n        email = document.getElementById(\"email\");\r\n\r\n        if (email.value != \"\") {\r\n            if (String(email.value).length > 5 &&\r\n                (String(email.value).includes(\"@\"))\r\n                && (String(email.value).includes(\".com\"))) {\r\n                formvalidNowrealsubmit(email.value);\r\n            } else {\r\n                warrning.innerHTML = \"please enter valid email\";\r\n\r\n            }\r\n        } else {\r\n            warrning.innerHTML = \"please enter email\";\r\n        }\r\n\r\n\r\n    }\r\n    var navibarjsonoveride = JSON.stringify({\r\n        NaviId: 'navibar',\r\n        backgroundimage: \"https:\/\/endofenthalpyonline.com\/wp-content\/uploads\/public\/LogginScreenVidio.mp4\",\r\n        overidescrooling: true,\r\n        Vidio: true\r\n\r\n    });\r\n<\/script>\r\n<video autoplay muted loop>\r\n    <source src=\"https:\/\/endofenthalpyonline.com\/wp-content\/uploads\/public\/LogginScreenVidio.mp4\" type=\"video\/mp4\">\r\n    Your browser does not support the video tag.\r\n<\/video>\r\n<center>\r\n    <div style=\"background-image: url(logginscreenbackground.png); background-size: cover; background-repeat: no-repeat; width: 100%; padding-top: 30%; padding-bottom: 30% \">\r\n        <div style=\" text-align: center; width: 50%;\">\r\n            <h1>reset password<\/h1>\r\n        <\/div>\r\n        <div style=\" width: 50%\">\r\n            <b id=\"errormessage\" style=\"color:red\"><\/b>\r\n            <div style=\"\" id=\"sfortohideid\">\r\n                <br \/><h2>\r\n                    Email<input required type=\"email\" id=\"email\" value=\"\" \/><br \/>\r\n                <\/h2>\r\n                <button  name=\"reset account\" onclick=\"submitform()\" class=\"recoveraccountbutton\"> recover account<\/button>\r\n\r\n            <\/div>\r\n        <\/div>\r\n    <\/div>\r\n<\/center>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Your browser does not support the video tag. reset password Email recover account<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-558","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/endofenthalpyonline.com\/index.php\/wp-json\/wp\/v2\/pages\/558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/endofenthalpyonline.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/endofenthalpyonline.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/endofenthalpyonline.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/endofenthalpyonline.com\/index.php\/wp-json\/wp\/v2\/comments?post=558"}],"version-history":[{"count":27,"href":"https:\/\/endofenthalpyonline.com\/index.php\/wp-json\/wp\/v2\/pages\/558\/revisions"}],"predecessor-version":[{"id":676,"href":"https:\/\/endofenthalpyonline.com\/index.php\/wp-json\/wp\/v2\/pages\/558\/revisions\/676"}],"wp:attachment":[{"href":"https:\/\/endofenthalpyonline.com\/index.php\/wp-json\/wp\/v2\/media?parent=558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}