{"id":764,"date":"2020-11-19T18:09:06","date_gmt":"2020-11-19T10:09:06","guid":{"rendered":"https:\/\/www.buddhalandonearth.org\/?page_id=764"},"modified":"2022-04-22T12:11:25","modified_gmt":"2022-04-22T04:11:25","slug":"forget_password","status":"publish","type":"page","link":"https:\/\/www.buddhalandonearth.org\/family\/forget_password\/","title":{"rendered":"\u5fd8\u8a18\u5bc6\u78bc"},"content":{"rendered":"<div id='error_msg_bar'><\/div><script language=\"JavaScript\">\nvar ini_error = true;\n\nwindow.onerror = function () {\n\tif(ini_error) {\n\t\tsetTimeout(function() { \n\t\t\/\/\tlocation.href = location.href + \"?v=1.0\"; \n\t\t}, 1000);\n\t}\n\t\/\/$(\"#support_msg\").show();\n\t\/\/alert(\"An error occurred.\");\n}\n<\/script>\n<link href='https:\/\/www.buddhalandonearth.org\/family\/wp-content\/plugins\/bw-tuning\/assets\/css\/intlTelInput.css' rel=\"stylesheet\" \/>\n<script src='https:\/\/www.buddhalandonearth.org\/family\/wp-content\/plugins\/bw-tuning\/assets\/js\/intlTelInput-jquery.js'><\/script>\n<style>\n@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none) {\n\t.form-control {\n\t\theight: 100%;\n\t}\n}\n\nform .error\n{\n\tcolor: red;\n}\n\nform .row {\n\tpadding-bottom: 18px;\n}\n\nform {\n    font-size: 18px;\n\tmargin-bottom: 16px;\n\tmax-width: 305px;\n\tmargin: auto;\n}\n\n@font-face {\n\tfont-family: 'NotoSansTC-Bold';\n\tfont-style: normal;\n\tfont-weight: normal;\n\tfont-display: auto;\n\tsrc: local('NotoSansTC-Bold'),\n\t\turl(\/\/fonts.gstatic.com\/ea\/notosanstc\/v1\/NotoSansTC-Bold.woff2) format('woff2'),\n\t\turl(\/\/fonts.gstatic.com\/ea\/notosanstc\/v1\/NotoSansTC-Bold.woff) format('woff'),\n\t\turl(\/\/fonts.gstatic.com\/ea\/notosanstc\/v1\/NotoSansTC-Bold.otf) format('opentype');\n}\n\n@font-face {\n\tfont-family: 'DINBold';\n\tfont-display: auto;\n\tsrc: local('DINBold'),\n\t\turl('https:\/\/www.buddhalandonearth.org\/family\/wp-content\/plugins\/bw-tuning\/assets\/font\/DIN-Bold.otf') format('opentype');\n\tfont-weight: normal;\n\tfont-style: normal;\n}\n\ninput[type=button]\n{\n\tbackground: #2394BC;\n\tborder-radius: 5px;\n\twidth: 100%;\n\tfont-size: 20px;\n\tline-height: 24px;\n}\n\ninput[type=button]:disabled\n{\n\tbackground: #C4C4C4;\n}\n\n#get_auth_code_again_btn\n{\n\tbackground:red;\n}\n\n#get_auth_code_again_btn:disabled\n{\n\tbackground: #C4C4C4;\n}\n\n.iti { width: 100%; }\n.iti__dial-code { display: none; }\n<\/style>\n\n<div id='support_msg'  style=\"display:none\" >\nMozilla\/5.0 AppleWebKit\/537.36 (KHTML, like Gecko; compatible; ClaudeBot\/1.0; +claudebot@anthropic.com)<\/div>\n\n<form action=\"\" id=\"reset_pwd_form\" method=\"post\" accept-charset=\"utf-8\" autocomplete=\"off\" \/>\n<div class=\"row\">\n\t<div class=\"col-md-12 text-center\">\n\t\t<b>\u4e09\u6b65\u9a5f\u8a2d\u5b9a\u5bc6\u78bc<\/b>\n\t<\/div>\n<\/div>\n<div class=\"row\">\n\t<div class=\"col-md-12\">\n\t\t<img class=\"margin-bottom-20\" src=\"https:\/\/www.buddhalandonearth.org\/family\/wp-content\/plugins\/bw-tuning\/assets\/img\/step1.svg\" width=\"100%\" \/>\n\t<\/div>\n<\/div>\n<div class=\"row\">\n\t<div class=\"col-md-12\">\n\t\t<label id=\"pid_label\" for=\"pid\" style=\"font-size: 16px;\">\u4f5b\u5bb6\u7de8\u865f(\u6216\u8eab\u5206\u8b49\u3001\u5c45\u7559\u8b49)<\/label><br\/>\n\t\t<input class=\"form-control margin-bottom-20\" id=\"pid\" name=\"pid\" value=\"\" type=\"text\" placeholder=\"\u8acb\u8f38\u5165\u4f5b\u5bb6\u7de8\u865f(\u6216\u8eab\u5206\u8b49\u3001\u5c45\u7559\u8b49)\" \/>\n\t<\/div>\n<\/div>\n\n<div class=\"row\">\n\t<div class=\"col-md-12\">\n\t\t<label id=\"cell_phone_label\" for=\"pid\" style=\"font-size: 16px;\">\u624b\u6a5f\u865f\u78bc\u6216Email<\/label><br\/>\n\t\t<input class=\"form-control margin-bottom-20\" id=\"cell_phone\" name=\"cell_phone\" value=\"\" type=\"text\" placeholder=\"\u8acb\u8f38\u5165\u624b\u6a5f\u865f\u78bc\u6216Email\" \/>\n\t<\/div>\n<\/div>\n<div class=\"row\">\n\t<div class=\"col-md-12 text-center\">\n\t\t<div class=\"error\" id=\"error_msg\"><\/div>\n\t\t\u9a57\u8b49\u78bc\u5c07\u50b3\u9001\u5230\u624b\u6a5f\u7c21\u8a0a\u548cEMail\n\t<\/div>\n<\/div>\n<div class=\"row\">\n\t<div class=\"col-md-12 text-center\">\n\t\t<input type=\"button\" name=\"Next\" id=\"get_auth_code_btn\" value=\"\u53d6\u5f97\u9a57\u8b49\u78bc\" \/>\n\t<\/div>\n<\/div>\n<\/form>\n\n<form action=\"\" id=\"auth_code_form\" method=\"post\" accept-charset=\"utf-8\" autocomplete=\"off\" style=\"display: none;\" \/>\n<div class=\"row\">\n\t<div class=\"col-md-12\">\n\t\t<img class=\"margin-bottom-20\" src=\"https:\/\/www.buddhalandonearth.org\/family\/wp-content\/plugins\/bw-tuning\/assets\/img\/step2.svg\" width=\"100%\" \/>\n\t<\/div>\n<\/div>\n<div class=\"row\">\n\t<div class=\"col-md-12 text-center\">\n\t\t\u9a57\u8b49\u78bc\u5df2\u50b3\u9001\u81f3\u60a8\u7684\u624b\u6a5f\u7c21\u8a0a\u548cEMail\n\t\t<div class=\"error\" id=\"auth_error_msg\"><\/div>\n\t<\/div>\n<\/div>\n<div class=\"row\">\n    <div class=\"col-md-6 col-sm-6 col-xs-6 text-center\">\n\t\t<span style='color: red;' style=\"font-size: 16px;\">\u5012\u6578\uff1a<label id='auth_code_timer'>OO\u79d2<\/label><\/span>\n    <\/div>\n    <div class=\"col-md-6 col-sm-6 col-xs-6\">\n        <input type=\"button\" style=\"font-size: 16px;\" id=\"get_auth_code_again_btn\" value=\"\u518d\u6b21\u53d6\u5f97\u9a57\u8b49\u78bc\" disabled=disabled \/>\n    <\/div>\n<\/div>\n<div class=\"row\">\n\t<div class=\"col-md-12 col-sm-12\">\n\t\t<input class=\"form-control margin-bottom-20\" id=\"auth_code\" name=\"auth_code\" value=\"\" type=\"text\" placeholder=\"\u8acb\u8f38\u5165\u9a57\u8b49\u78bc\" \/>\n\t<\/div>\n<\/div>\n<div class=\"row\">\n\t<div class=\"col-md-12 text-center col-sm-12\">\n\t\t<input type=\"button\" name=\"send_auth_code\" id=\"send_auth_code_btn\" value=\"\u9001\u51fa\" \/>\n\t<\/div>\n<\/div>\n<\/form>\n\n<form action=\"\" id=\"passwd_form\" method=\"post\" accept-charset=\"utf-8\" autocomplete=\"off\" style=\"display: none;\" \/>\n<div class=\"row\">\n\t<div class=\"col-md-12\">\n\t\t<img class=\"margin-bottom-20\" src=\"https:\/\/www.buddhalandonearth.org\/family\/wp-content\/plugins\/bw-tuning\/assets\/img\/step3.svg\" width=\"100%\" \/>\n\t<\/div>\n<\/div>\n<div class=\"row\">\n\t<div class=\"col-md-12 text-center\">\n\t\t<b>\u8a2d\u5b9a\u5bc6\u78bc<\/b>\n\t\t<div class=\"error\" id=\"passwd_error_msg\"><\/div>\n\t<\/div>\n<\/div>\n<!--\n<div class=\"row\">\n\t<div class=\"col-md-12 text-center\" style=\"font-size: 16px;\">\n\t\t\u8acb\u8f38\u5165 6-12 \u82f1\u6587\u6216\u6578\u5b57\u5bc6\u78bc\n\t<\/div>\n<\/div>\n<div class=\"row\">\n\t<div class=\"col-md-12 text-center\" style=\"font-size: 14px;\">\n\t\t\u82e5\u60a8\u7684\u5bc6\u78bc\u5305\u542b\u5927\u5beb\u5b57\u6bcd<br\/>\u767b\u5165\u6642\u5927\u5c0f\u5beb\u4e5f\u5fc5\u9808\u76f8\u540c\n\t<\/div>\n<\/div>\n-->\n<div class=\"row\">\n\t<div class=\"col-md-12 col-sm-12\">\n\t\t<input class=\"form-control margin-bottom-20\" id=\"passwd\" name=\"passwd\" value=\"\" type=\"password\" placeholder=\"\u8acb\u8f38\u5165\u5bc6\u78bc\" \/>\n\t<\/div>\n<\/div>\n<div class=\"row\">\n\t<div class=\"col-md-12 col-sm-12\">\n\t\t<input class=\"form-control margin-bottom-20\" id=\"passwd_r\" name=\"passwd_r\" value=\"\" type=\"password\" placeholder=\"\u8acb\u518d\u6b21\u8f38\u5165\u5bc6\u78bc\" \/>\n\t<\/div>\n<\/div>\n\n<div class=\"row\">\n\t<div class=\"col-md-12 text-center col-sm-12\">\n\t\t<input type=\"button\" name=\"set_passwd\" id=\"set_passwd_btn\" value=\"\u9001\u51fa\" \/>\n\t<\/div>\n<\/div>\n<\/form>\n\n<form action=\"\" id=\"passwd_ok_form\" method=\"post\" accept-charset=\"utf-8\" autocomplete=\"off\" style=\"display: none;\" \/>\n<div class=\"row\">\n\t<div class=\"col-md-12 text-center\">\n\t\t<b>\u5df2\u5b8c\u6210\u8a2d\u5b9a\u5bc6\u78bc<\/b>\n\t<\/div>\n<\/div>\n<div class=\"row\">\n\t<div class=\"col-md-12 text-center col-sm-12\">\n\t\t<input type=\"button\" id=\"go_to_login_btn\" value=\"\u524d\u5f80\u9996\u9801\" \/>\n\t<\/div>\n<\/div>\n<\/form>\n\n<script language=\"JavaScript\">\n<!--\nvar auth_code_timer = -1;\n\n(function($) {\n \tfunction setCookie(name, value,expire_minute) {\n\t\tvar d = new Date();\n\t\tif (typeof expire_minute !== \"number\") {\n\t\t\texpire_minute = 60;\n\t\t}\n\t\td.setTime(d.getTime() + (expire_minute*60*1000));\n\t\tvar expires = \"expires=\"+d.toGMTString();\n\t\tdocument.cookie = name + \"=\" + escape(value) + \"; \" + expires;\n  \t}\n\n  \tfunction getCookie (name) {\n\t\tif (document.cookie.length > 0) { \/\/ if there are any cookies\n\t\t\tvar search = name + \"=\";\n\t\t\toffset = document.cookie.indexOf(search);\n\t\t\tif (offset != -1) { \/\/ if cookie exists\n\t\t\t\toffset += search.length;\n\t\t\t\t\/\/ set index of beginning of value\n\t\t\t\tend = document.cookie.indexOf(\";\", offset);\n\t\t\t\t\/\/ set index of end of cookie value\n\t\t\t\tif (end == -1)\n\t\t\t\t\tend = document.cookie.length;\n\t\t\t\treturn unescape(document.cookie.substring(offset, end));\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}\n\n\tfunction delValues() {\n\t}\n\n    function storeValues() {\n    }\n\n\tvar delay = function(s) {\n\t\treturn new Promise(function(resolve,reject) {\n\t\t\tsetTimeout(resolve, s); \n\t\t});\n\t};\n\n\t\/**\n\t * \u8f49\u534a\u5f62\u5b57\u5143\n\t *\/\n\tfunction toSBC(str)\n\t{\n\t\tvar result = \"\";\n\t\tvar len = str.length;\n\t\tfor (var i = 0; i < len; ++i) {\n\t\t\tvar cCode = str.charCodeAt(i);\n\t\t\t\/\/\u5168\u5f62\u8207\u534a\u5f62\u76f8\u5dee\uff08\u9664\u7a7a\u683c\u5916\uff09\uff1a65248\uff08\u5341\u9032\u4f4d\u5236\uff09\n\t\t\tcCode = (cCode>=0xFF01 && cCode<=0xFF5E)?(cCode - 65248) : cCode;\n\t\t\t\/\/\u8655\u7406\u7a7a\u683c\n\t\t\tcCode = (cCode==0x03000)?0x0020:cCode;\n\t\t\tresult += String.fromCharCode(cCode);\n\t\t}\n\t\treturn result;\n\t}\n\n\tfunction normalizePhone(phone)\n\t{\n\t\tphone = toSBC(phone);\n\t\tphone = phone.replace(\/[\\-\\(\\)]\/g, '');\n\t\treturn $.trim(phone);\n\t}\n\n\tfunction getCountryData(element)\n\t{\n\t\tvar countryData = $(element).intlTelInput(\"getSelectedCountryData\");\n\n\t\treturn countryData;\n\t}\n\n\tfunction getPersonalID(id)\n\t{\n\t\tvar countryData = getCountryData(id);\n\n\t\tif (countryData.iso2 != \"tw\") {\n\t\t\treturn countryData.iso2.toUpperCase() + \"-\" + $.trim(toSBC($(id).val()));\n\t\t} else {\n\t\t\treturn $.trim(toSBC($(id).val()));\n\t\t}\n\t}\n\n    function countDownAuthCodeTimer()\n    {\n        if (auth_code_timer > 0) {\n            --auth_code_timer;\n            $(\"#auth_code_timer\").html(auth_code_timer + \"\u79d2\");\n        }\n\n        if (auth_code_timer > 0) {\n            setTimeout(countDownAuthCodeTimer, 1000);\n        } else {\n            $(\"#get_auth_code_again_btn\").prop('disabled', '');\n        }\n    }\n\n    function startAuthCodeTimer()\n    {\n        auth_code_timer = 180;\n        $(\"#auth_code_timer\").html(auth_code_timer + \"\u79d2\");\n        $(\"#get_auth_code_again_btn\").prop('disabled', true);\n\n        setTimeout(countDownAuthCodeTimer, 1000);\n    }\n\n    function stopAuthCodeTimer()\n    {\n        auth_code_timer = 0;\n        $(\"#get_auth_code_again_btn\").prop('disabled', true);\n    }\n\n\t$(document).ready(function () {\n\t\tini_error = false;\n\t\tif(getCookie('auth_code_question')) {\n\t\t\t$(\"#cell_phone\").val(getCookie('cell_phone'))\n\t\t\t$(\"#pid\").val(getCookie('pid'))\n\t\t\t$(\"#reset_pwd_form\").fadeOut(400, function() {\n\t\t\t\t$(\"#auth_code_form\").fadeIn(400);\n\t\t\t\tstartAuthCodeTimer();\n\t\t\t\t$(document).scrollTop(0);\n\t\t\t});\t\n\t\t}\n\t\tjQuery.validator.addMethod(\"twCellPhoneOrEmail\", function(value, element) {\n\t\t\tvalue = normalizePhone(value);\n\t\t\treturn this.optional(element) || value.match(\/^09\\d{8}$\/) || $.trim(value).match(\/^[a-zA-Z0-9_\\.%\\+\\-]+@[a-zA-Z0-9\\.\\-]+\\.[a-zA-Z]{2,}$\/);\n\t\t}, \"\u7121\u6548\u624b\u6a5f\/EMail\u683c\u5f0f\");\n\n\t\tvar validator_reset_pwd_form = $('#reset_pwd_form').validate({\n\t\t\trules: {\n\t\t\t\tpid: \"required\",\n\t\t\t\tcell_phone: {\n\t\t\t\t\trequired: true,\n\t\t\t\t\ttwCellPhoneOrEmail: true\n\t\t\t\t}\n\t\t\t},\n\t\t\tmessages: {\n\t\t\t\tpid: \"\u5fc5\u9808\u586b\u5beb\u8eab\u5206\u8b49\u6216\u5c45\u7559\u8b49\",\n\t\t\t\tcell_phone: {\n\t\t\t\t\trequired: \"\u5fc5\u9808\u586b\u5beb\u624b\u6a5f\u6216EMail\"\n\t\t\t\t}\n\t\t\t},\n\t\t\terrorPlacement: function (error, element) {\n\t\t\t\tif (element.is(':radio') || element.is(':checkbox')) {\n\t\t\t\t\tvar eid = element.attr('name');\n\t\t\t\t\t$('input[name=' + eid + ']:last').next().after(error);\n\t\t\t\t} else {\n   \t\t\t\t \tvar eid = error.attr('id');\n\t\t\t\t\terror.insertAfter(element);\n\t\t\t\t}\n\t\t\t},\n\t\t\tfocusInvalid: false,\n\t\t\tinvalidHandler: function(form, validator) {\n\t\t\t\tif (!validator.numberOfInvalids())\n\t\t\t\t\treturn;\n\t\t\t\t\n                var top = $(validator.errorList[0].element).offset().top-100;\n\t\t\t\t$('html, body').animate({\n\t\t\t\t\tscrollTop: top\n\t\t\t\t}, 400);\n\t\t\t}\n\t\t});\n\n\t\tvar validator_auth_code_form = $('#auth_code_form').validate({\n\t\t\trules: {\n\t\t\t\tauth_code: \"required\"\n\t\t\t},\n\t\t\tmessages: {\n\t\t\t\tauth_code: \"\u5fc5\u9808\u586b\u5beb\u9a57\u8b49\u78bc\"\n\t\t\t},\n\t\t\terrorPlacement: function (error, element) {\n\t\t\t\tif (element.is(':radio') || element.is(':checkbox')) {\n\t\t\t\t\tvar eid = element.attr('name');\n\t\t\t\t\t$('input[name=' + eid + ']:last').next().after(error);\n\t\t\t\t} else {\n   \t\t\t\t \tvar eid = error.attr('id');\n\t\t\t\t\terror.insertAfter(element);\n\t\t\t\t}\n\t\t\t},\n\t\t\tfocusInvalid: false,\n\t\t\tinvalidHandler: function(form, validator) {\n\t\t\t\tif (!validator.numberOfInvalids())\n\t\t\t\t\treturn;\n\t\t\t\t\n                var top = $(validator.errorList[0].element).offset().top-100;\n\t\t\t\t$('html, body').animate({\n\t\t\t\t\tscrollTop: top\n\t\t\t\t}, 400);\n\t\t\t}\n\t\t});\n\n\t\tvar validator_passwd_form = $('#passwd_form').validate({\n\t\t\trules: {\n\t\t\t\tpasswd: {\n\t\t\t\t\trequired: true\n\t\t\t\t},\n\t\t\t\tpasswd_r: {\n\t\t\t\t\trequired: true,\n\t\t\t\t\tequalTo: \"#passwd\"\n\t\t\t\t}\n\t\t\t},\n\t\t\tmessages: {\n\t\t\t\tpasswd: {\n\t\t\t\t\trequired: \"\u5fc5\u9808\u586b\u5beb\u5bc6\u78bc\"\n\t\t\t\t},\n\t\t\t\tpasswd_r: {\n\t\t\t\t\trequired: \"\u5fc5\u9808\u8f38\u5165\",\n\t\t\t\t\tequalTo: \"\u5bc6\u78bc\u4e0d\u4e00\u81f4\"\n\t\t\t\t}\n\t\t\t},\n\t\t\terrorPlacement: function (error, element) {\n\t\t\t\tif (element.is(':radio') || element.is(':checkbox')) {\n\t\t\t\t\tvar eid = element.attr('name');\n\t\t\t\t\t$('input[name=' + eid + ']:last').next().after(error);\n\t\t\t\t} else {\n   \t\t\t\t \tvar eid = error.attr('id');\n\t\t\t\t\terror.insertAfter(element);\n\t\t\t\t}\n\t\t\t},\n\t\t\tfocusInvalid: false,\n\t\t\tinvalidHandler: function(form, validator) {\n\t\t\t\tif (!validator.numberOfInvalids())\n\t\t\t\t\treturn;\n\t\t\t\t\n                var top = $(validator.errorList[0].element).offset().top-100;\n\t\t\t\t$('html, body').animate({\n\t\t\t\t\tscrollTop: top\n\t\t\t\t}, 400);\n\t\t\t}\n\t\t});\n\n\t\tvar auth_code_question = getCookie('auth_code_question');;\n\n\t\t$('#get_auth_code_btn').click(function() {\n\t\t\tif (validator_reset_pwd_form.form()) {\n\t\t\t$('#get_auth_code_btn').attr('disabled', true);\n\t\t\t\tpostform = $.ajax({\n\t\t\t\t\ttype: \"POST\",\n\t\t\t\t\turl: \"?bw-api=reset_passwd\",\n\t\t\t\t\tdata: {\n\t\t\t\t\t\tpid: getPersonalID(\"#pid\"),\n\t\t\t\t\t\tcell_phone: $(\"#cell_phone\").val()\n\t\t\t\t\t},\n\t\t\t\t\tcache:false,\n\t\t\t\t\tdataType: 'json',\n\t\t\t\t\tsuccess: function (data) {\n\t\t\t\t\t\t$('#get_auth_code_btn').attr('disabled', false);\n\t\t\t\t\t\tif (data.code == 0) {\n\t\t\t\t\t\t\t$(\"#error_msg\").html(\"\");\n\t\t\t\t\t\t\tauth_code_question = data.data.question;\n\t\t\t\t\t\t\tsetCookie(\"auth_code_question\",auth_code_question,3);\n\t\t\t\t\t\t\tsetCookie(\"cell_phone\",$(\"#cell_phone\").val(),3);\n\t\t\t\t\t\t\tsetCookie(\"pid\",$(\"#pid\").val(),3);\n\t\t\t\t\t\t\t$(\"#reset_pwd_form\").fadeOut(400, function() {\n\t\t\t\t\t\t\t\t$(\"#auth_code_form\").fadeIn(400);\n\t\t\t\t\t\t\t\tstartAuthCodeTimer();\n\t\t\t\t\t\t\t\t$(document).scrollTop(0);\n\t\t\t\t\t\t\t});\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$(\"#error_msg\").html(data.message);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).fail(function() {\n\t\t\t\t\t$(\"#error_msg\").html(\"\u767c\u751f\u7570\u5e38\uff0c\u8acb\u7a0d\u5f8c\u518d\u8a66\");\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\t$('#get_auth_code_again_btn').click(function() {\n\t\t\tpostform = $.ajax({\n\t\t\t\ttype: \"POST\",\n\t\t\t\turl: \"?bw-api=reset_passwd\",\n\t\t\t\tdata: {\n\t\t\t\t\tpid: getPersonalID(\"#pid\"),\n\t\t\t\t\tcell_phone: $(\"#cell_phone\").val()\n\t\t\t\t},\n\t\t\t\tcache:false,\n\t\t\t\tdataType: 'json',\n\t\t\t\tsuccess: function (data) {\n\t\t\t\t\tif (data.code == 0) {\n\t\t\t\t\t\t$(\"#auth_error_msg\").html(\"\");\n\t\t\t\t\t\tstartAuthCodeTimer();\n\t\t\t\t\t\tauth_code_question = data.data.question;\n\t\t\t\t\t\tsetCookie(\"auth_code_question\",auth_code_question,3);\n\t\t\t\t\t\tsetCookie(\"cell_phone\",$(\"#cell_phone\").val(),3);\n\t\t\t\t\t\tsetCookie(\"pid\",$(\"#pid\").val(),3);\n\t\t\t\t\t\t$(document).scrollTop(0);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$(\"#auth_error_msg\").html(data.message);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}).fail(function() {\n\t\t\t\t$(\"#auth_error_msg\").html(\"\u767c\u751f\u7570\u5e38\uff0c\u8acb\u7a0d\u5f8c\u518d\u8a66\");\n\t\t\t});\n\t\t});\n\t\t$('#send_auth_code_btn').click(function() {\n\t\t\tif (validator_auth_code_form.form()) {\n\t\t\t\tpostform = $.ajax({\n\t\t\t\t\ttype: \"POST\",\n\t\t\t\t\turl: \"?bw-api=verify_auth_code\",\n\t\t\t\t\tdata: {\n\t\t\t\t\t\tauth_code: $(\"#auth_code\").val(),\n\t\t\t\t\t\tcell_phone: $(\"#cell_phone\").val(),\n\t\t\t\t\t\tquestion: auth_code_question\n\t\t\t\t\t},\n\t\t\t\t\tcache:false,\n\t\t\t\t\tdataType: 'json',\n\t\t\t\t\tsuccess: function (data) {\n\t\t\t\t\t\tif (data.code == 0) {\n\t\t\t\t\t\t\t$(\"#auth_error_msg\").html(\"\");\n\n\t\t\t\t\t\t\tstopAuthCodeTimer();\n\n\t\t\t\t\t\t\t$(\"#auth_code_form\").fadeOut(400, function() {\n\t\t\t\t\t\t\t\t$(\"#passwd_form\").fadeIn(400);\n\t\t\t\t\t\t\t\t$(document).scrollTop(0);\n\t\t\t\t\t\t\t});\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$(\"#auth_error_msg\").html(data.message);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).fail(function() {\n\t\t\t\t\t$(\"#auth_error_msg\").html(\"\u767c\u751f\u7570\u5e38\uff0c\u8acb\u7a0d\u5f8c\u518d\u8a66\");\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\t$('#set_passwd_btn').click(function() {\n\t\t\tif (validator_passwd_form.form()) {\n\t\t\t\tpostform = $.ajax({\n\t\t\t\t\ttype: \"POST\",\n\t\t\t\t\turl: \"?bw-api=set_passwd\",\n\t\t\t\t\tdata: {\n\t\t\t\t\t\tpid: getPersonalID(\"#pid\"),\n\t\t\t\t\t\tcell_phone: $(\"#cell_phone\").val(),\n\t\t\t\t\t\tauth_code: $(\"#auth_code\").val(),\n\t\t\t\t\t\tpasswd: $(\"#passwd\").val(),\n\t\t\t\t\t\tmode: \"reset_passwd\",\n\t\t\t\t\t\tquestion: auth_code_question\n\t\t\t\t\t},\n\t\t\t\t\tcache:false,\n\t\t\t\t\tdataType: 'json',\n\t\t\t\t\tsuccess: function (data) {\n\t\t\t\t\t\tif (data.code == 0) {\n\t\t\t\t\t\t\t$(\"#passwd_error_msg\").html(\"\");\n\t\t\t\t\t\t\tsetCookie(\"auth_code_question\",0,0);\n\t\t\t\t\t\t\tsetCookie(\"cell_phone\",0,0);\n\t\t\t\t\t\t\t$(\"#passwd_form\").fadeOut(400, function() {\n\t\t\t\t\t\t\t\t$(\"#passwd_ok_form\").fadeIn(400);\n\t\t\t\t\t\t\t\t$(document).scrollTop(0);\n\t\t\t\t\t\t\t});\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$(\"#passwd_error_msg\").html(data.message);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).fail(function() {\n\t\t\t\t\t$(\"#passwd_error_msg\").html(\"\u767c\u751f\u7570\u5e38\uff0c\u8acb\u7a0d\u5f8c\u518d\u8a66\");\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\t$('#go_to_login_btn').click(function() {\n\t\t\tlocation.href = \"\/family\/login?tt=164633\";\n\t\t});\n\n\t\t$('#pid').intlTelInput({\n\t\t\tinitialCountry: \"TW\",\n\t\t\tpreferredCountries: [],\n\t\t\tautoPlaceholder: \"off\"\n\t\t});\n\n\t\t$('#pid').on(\"countrychange\", function() {\n\t\t\tvar countryData = getCountryData(this);\n\t\t\tvar country = countryData.iso2.toUpperCase();\n\n\t\t\tif (country == \"TW\") {\n\t\t\t\t$(\"#pid\").attr(\"placeholder\", \"\u8acb\u8f38\u5165\u4f5b\u5bb6\u7de8\u865f(\u6216\u8eab\u5206\u8b49\u3001\u5c45\u7559\u8b49)\");\n\t\t\t\t$(\"#pid_label\").html(\"\u4f5b\u5bb6\u7de8\u865f(\u6216\u8eab\u5206\u8b49\u3001\u5c45\u7559\u8b49)\");\n\t\t\t} else {\n\t\t\t\t$(\"#pid\").attr(\"placeholder\", \"\u8acb\u8f38\u5165\u8b77\u7167\u865f\u78bc\");\n\t\t\t\t$(\"#pid_label\").html(\"\u8b77\u7167\u865f\u78bc\");\n\t\t\t}\n\t\n\t\t});\n\n\t});\n})(jQuery);\n-->\n<\/script>\n\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"pmpro_default_level":"","inline_featured_image":false},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.buddhalandonearth.org\/family\/wp-json\/wp\/v2\/pages\/764"}],"collection":[{"href":"https:\/\/www.buddhalandonearth.org\/family\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.buddhalandonearth.org\/family\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.buddhalandonearth.org\/family\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.buddhalandonearth.org\/family\/wp-json\/wp\/v2\/comments?post=764"}],"version-history":[{"count":7,"href":"https:\/\/www.buddhalandonearth.org\/family\/wp-json\/wp\/v2\/pages\/764\/revisions"}],"predecessor-version":[{"id":13163,"href":"https:\/\/www.buddhalandonearth.org\/family\/wp-json\/wp\/v2\/pages\/764\/revisions\/13163"}],"wp:attachment":[{"href":"https:\/\/www.buddhalandonearth.org\/family\/wp-json\/wp\/v2\/media?parent=764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}