{"id":160,"date":"2021-03-09T19:39:38","date_gmt":"2021-03-09T19:39:38","guid":{"rendered":"https:\/\/dee-rob.com\/forum\/?page_id=160"},"modified":"2021-03-09T19:39:38","modified_gmt":"2021-03-09T19:39:38","slug":"lost-password","status":"publish","type":"page","link":"https:\/\/dee-rob.com\/trench\/lost-password\/","title":{"rendered":"Lost password"},"content":{"rendered":"<script type='text\/javascript' >\nwindow.bbpajax = {};\nBBPAjax_extparm = function() {\n    const params = window.bbpajax['params'];\n    const selector = window.bbpajax['selector'];\n    const items = document.querySelectorAll( selector );\n    for (let i = 0; i < items.length; i++) {\n        if(items[i].name && items[i].name != 'g-recaptcha-response'){\n            if(items[i].type == 'checkbox'){\n                params[ items[i].name ] = (items[i].checked != false)? 1 : 0;\n            } else {\n                params[ items[i].name ] = items[i].value;\n            }\n        }\n    }\n    const recaptcha = document.querySelectorAll( \"*[name='g-recaptcha-response']\" );\n    for (let i = 0; i < recaptcha.length; i++) {\n        if(recaptcha[i].textLength > 0){\n            params[ recaptcha[i].name ] = recaptcha[i].value;        \n            break;\n        }\n    }\n    return params;\n}\nBBPAjax_submit = function( params ) {\n    jQuery.ajax({ type: 'POST', url: 'https:\/\/dee-rob.com\/trench\/wp-admin\/admin-ajax.php', dataType: 'json', \n        data : params, \n    }).then(\n        function (response, dataType) {\n            if(typeof renderInvisibleReCaptcha !== \"undefined\"){\n                grecaptcha.reset();\n            }\n            let result = window.bbpajax['success'];\n            if(response.data.result !== result.code){\n                result = window.bbpajax['error'];\n            }\n            if(result.msg != null)\n                jQuery( result.msg ).html(response.data.info);\n            if(result.action == 'redirect')\n                window.location.href = response.data.info;\n        },\n        function () {\n            if(typeof renderInvisibleReCaptcha !== \"undefined\"){\n                grecaptcha.reset();\n            }            \n            \/\/alert(\"ajax response error\");\n        }\n    );    \n}\n<\/script>\n                \n<script type='text\/javascript' >\nWPCustomResetPass = function(nonce){\n    window.bbpajax['params'] = { action: \"custom_resetpass\", _ajax_nonce: nonce,};\n    window.bbpajax['selector'] = \"form.bbp-login-form.bbp-lost-pass input\";\n    window.bbpajax['success'] = { code:'resetpass', msg: '.custom-resetpass-info', action: null };\n    window.bbpajax['error'] = { code: 'e_resetpass', msg: '.custom-resetpass-info', action: null };\n    \n    if(typeof renderInvisibleReCaptcha !== \"undefined\"){\n    \tgrecaptcha.execute();\n    } else {\n        BBPAjax_submit( BBPAjax_extparm() );\n    }\n    return false; \n};\n<\/script>  \n\r\n<form method=\"post\"  class=\"bbp-login-form bbp-lost-pass\">\r\n\t<fieldset class=\"bbp-form\">\r\n\t\t<legend>Lost Password<\/legend>\r\n\r\n\t\t<div class=\"bbp-username\">\r\n\t\t\t<p>\r\n\t\t\t\t<label for=\"user_login\" class=\"hide\">Username or Email Address: <\/label>\r\n\t\t\t\t<input type=\"text\" name=\"user_login\" value=\"\" size=\"20\" id=\"user_login\" tabindex=\"101\" \/>\r\n\t\t\t<\/p>\r\n\t\t<\/div>\r\n\r\n\t\t\r\n\t\t<div class=\"bbp-submit-wrapper\">\r\n\r\n            <p class=\"hide-if-no-js\"><button id=\"bbp-lost-pass-submit\" class=\"button submit bbp-ajax-submit\" href=\"\" onclick=\"WPCustomResetPass('357a7b2162');return false;\" >Reset Password<\/button><\/p>\t\t\t\r\n\t\t<\/div>\r\n        \r\n\t<\/fieldset>\r\n    <div class=\"custom-resetpass-info\">\r\n    <\/div>\r\n<\/form>\r\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"footnotes":""},"class_list":["post-160","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/dee-rob.com\/trench\/wp-json\/wp\/v2\/pages\/160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dee-rob.com\/trench\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/dee-rob.com\/trench\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/dee-rob.com\/trench\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dee-rob.com\/trench\/wp-json\/wp\/v2\/comments?post=160"}],"version-history":[{"count":1,"href":"https:\/\/dee-rob.com\/trench\/wp-json\/wp\/v2\/pages\/160\/revisions"}],"predecessor-version":[{"id":162,"href":"https:\/\/dee-rob.com\/trench\/wp-json\/wp\/v2\/pages\/160\/revisions\/162"}],"wp:attachment":[{"href":"https:\/\/dee-rob.com\/trench\/wp-json\/wp\/v2\/media?parent=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}