{"id":408,"date":"2025-11-01T13:23:25","date_gmt":"2025-11-01T13:23:25","guid":{"rendered":"https:\/\/hmdsoft.com\/?page_id=408"},"modified":"2026-01-21T14:41:33","modified_gmt":"2026-01-21T14:41:33","slug":"login","status":"publish","type":"page","link":"https:\/\/hmdsoft.com\/index.php\/login\/","title":{"rendered":"Partner Login"},"content":{"rendered":"\n<form action=\"\/action_page.php\" id=\"form\">\n  <label for=\"fname\">User Name\/Email:<\/label>\n  <input type=\"text\" id=\"IDname\" name=\"IDname\"><br><br>\n  <label for=\"lname\">Password:<\/label>\n  <input type=\"password\" id=\"password\" name=\"password\"><br><br>\n\t<p id=\"log\"><\/p>\n  <input type=\"submit\" value=\"Submit\">\n<\/form>\n\n<script>\nconst form = document.getElementById(\"form\");\nconst log = document.getElementById(\"log\");\n\t\nform.addEventListener(\"submit\", logSubmit);\t\n\nfunction logSubmit(event) {\n\t let inputFieldName = document.getElementById(\"IDname\");\n   let valueName = inputFieldName.value;\n\n   \/\/alert(\"Name: \" + valueName);\n\t \/\/console.log(`Name: ${valueName}`);\n\t let inputFieldPassword = document.getElementById(\"password\");\n   let valuePassword = inputFieldPassword.value;\n   \/\/alert(\"Password: \" + valuePassword);\n\t \/\/console.log(`Password: ${valuePassword}`);\n\t \/\/log.textContent = document.getElementById(\"Bname\").innerHTML;\n  event.preventDefault();\n\tconst xhr = new XMLHttpRequest();\n  xhr.open(\"GET\", \"https:\/\/hmdsoft.com\/dialogflowservlet\/DialogFlowServlet?functionType=EZTestPasswordAndUserName&username=\" + valueName + \"&password=\" + valuePassword);\n  xhr.send();\n  \/\/xhr.responseType = \"json\";\n  xhr.onload = () => {\n  if (xhr.status === 200) {\n\t\t\/\/console.log(`Successful Request. Let's Parse it. ResponseText = ` + xhr.responseText);\n\t\tconst data = JSON.parse(xhr.responseText);\n\t\t\/\/console.log(`Successful Parse1. data.status = ` + data.status);\n\t\t\/\/console.log(`Successful Parse2. data.value = `  + data.value);\n\t\t\/\/const data = xhr.response;\n    \/\/console.log(data);\n    let res = data.status.localeCompare(\"100\");\n\t\tif (res === 0) {\n    \t\tconsole.log('Login Success Equal');\n\t\t\t\tlog.innerHTML = `Login Successful`;\n\t\t\t  window.location.replace(\"https:\/\/hmdsoft.com\/index.php\/login-home-page\/\");\n\n\t\t} else {\n    \t\tconsole.log('Login Failure. Credentials Invalid.');\n\t\t\t  log.innerHTML = `Credentials Invalid`;\n\t\t}\n  } else {\n    console.log(`Error: ${xhr.status}`);\n  }\n};\n \/\/ log.textContent = `End Timestamp: ${event.timeStamp}`;\t\n}\t\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>User Name\/Email: Password:<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-408","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/hmdsoft.com\/index.php\/wp-json\/wp\/v2\/pages\/408","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hmdsoft.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hmdsoft.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hmdsoft.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hmdsoft.com\/index.php\/wp-json\/wp\/v2\/comments?post=408"}],"version-history":[{"count":5,"href":"https:\/\/hmdsoft.com\/index.php\/wp-json\/wp\/v2\/pages\/408\/revisions"}],"predecessor-version":[{"id":523,"href":"https:\/\/hmdsoft.com\/index.php\/wp-json\/wp\/v2\/pages\/408\/revisions\/523"}],"wp:attachment":[{"href":"https:\/\/hmdsoft.com\/index.php\/wp-json\/wp\/v2\/media?parent=408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}