{"id":3134,"date":"2026-04-07T08:41:48","date_gmt":"2026-04-07T08:41:48","guid":{"rendered":"https:\/\/staging5.symphony-solution.com\/selfseawp\/?page_id=3134"},"modified":"2026-07-03T06:39:26","modified_gmt":"2026-07-03T06:39:26","slug":"create-new-password","status":"publish","type":"page","link":"https:\/\/selfsea.org\/staging\/create-new-password\/","title":{"rendered":"create-new-password"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"3134\" class=\"elementor elementor-3134\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4af5273 e-con-full e-flex e-con e-parent\" data-id=\"4af5273\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-792ab0a e-con-full elementor-hidden-mobile e-flex e-con e-child\" data-id=\"792ab0a\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-87f1773 e-con-full e-flex e-con e-child\" data-id=\"87f1773\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-049fba6 e-con-full e-flex e-con e-child\" data-id=\"049fba6\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-7cfacf9 e-con-full e-flex e-con e-child\" data-id=\"7cfacf9\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-d286a7f elementor-widget elementor-widget-heading\" data-id=\"d286a7f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">create new password<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a13b131 elementor-button-align-stretch elementor-widget elementor-widget-form\" data-id=\"a13b131\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;step_next_label&quot;:&quot;Next&quot;,&quot;step_previous_label&quot;:&quot;Previous&quot;,&quot;button_width&quot;:&quot;100&quot;,&quot;step_type&quot;:&quot;number_text&quot;,&quot;step_icon_shape&quot;:&quot;circle&quot;}\" data-widget_type=\"form.default\">\n\t\t\t\t\t\t\t<form class=\"elementor-form\" method=\"post\" name=\"reset_password\" aria-label=\"reset_password\">\n\t\t\t<input type=\"hidden\" name=\"post_id\" value=\"3134\"\/>\n\t\t\t<input type=\"hidden\" name=\"form_id\" value=\"a13b131\"\/>\n\t\t\t<input type=\"hidden\" name=\"referer_title\" value=\"create-new-password\" \/>\n\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"queried_id\" value=\"3134\"\/>\n\t\t\t\n\t\t\t<div class=\"elementor-form-fields-wrapper elementor-labels-above\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-password elementor-field-group elementor-column elementor-field-group-newpassword elementor-col-100\">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"form-field-newpassword\" class=\"elementor-field-label\">\n\t\t\t\t\t\t\t\tnew password\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input size=\"1\" type=\"password\" name=\"form_fields[newpassword]\" id=\"form-field-newpassword\" class=\"elementor-field elementor-size-sm  elementor-field-textual\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-password elementor-field-group elementor-column elementor-field-group-cpassword elementor-col-100\">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"form-field-cpassword\" class=\"elementor-field-label\">\n\t\t\t\t\t\t\t\tconfirm password\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input size=\"1\" type=\"password\" name=\"form_fields[cpassword]\" id=\"form-field-cpassword\" class=\"elementor-field elementor-size-sm  elementor-field-textual\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-group elementor-column elementor-field-type-submit elementor-col-100 e-form__buttons\">\n\t\t\t\t\t<button class=\"elementor-button elementor-size-sm\" type=\"submit\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">save new password<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/button>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/form>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5432179 elementor-widget elementor-widget-html\" data-id=\"5432179\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<style>\r\n.elementor-login .toggle-password, .toggle-password{\r\n        top: 40px !important;\r\n}\r\n<\/style>\r\n<script>\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n  const form = document.querySelector(\".elementor-form\");\r\n  if (!form) return;\r\n\r\n  const passwordFields = form.querySelectorAll(\"input[type='password']\");\r\n  const passwordField = passwordFields[0];\r\n  const confirmField = passwordFields[1];\r\n  const submitBtn = form.querySelector(\"button[type='submit']\");\r\n\r\n  if (!passwordField || !confirmField || !submitBtn) return;\r\n\r\n  let msg = form.querySelector(\".selfsea-reset-msg\");\r\n  if (!msg) {\r\n    msg = document.createElement(\"div\");\r\n    msg.className = \"selfsea-reset-msg\";\r\n    msg.style.marginTop = \"18px\";\r\n    msg.style.fontSize = \"14px\";\r\n    const submitWrap = submitBtn.closest(\".elementor-field-type-submit\");\r\n    submitWrap.insertAdjacentElement(\"afterend\", msg);\r\n  }\r\n\r\n  const params = new URLSearchParams(window.location.search);\r\n  const key = params.get(\"key\") || \"\";\r\n  const login = params.get(\"login\") || \"\";\r\n\r\n  function showMsg(message, success) {\r\n    msg.textContent = message;\r\n    msg.style.color = success ? \"#2e7d32\" : \"#ef4b3f\";\r\n    msg.style.display = \"block\";\r\n  }\r\n\r\n  form.addEventListener(\"submit\", async function (e) {\r\n    e.preventDefault();\r\n    e.stopPropagation();\r\n\r\n    const password = passwordField.value.trim();\r\n    const confirm = confirmField.value.trim();\r\n\r\n    if (!password || password.length < 8) {\r\n      showMsg(\"Password must be at least 8 characters.\", false);\r\n      return;\r\n    }\r\n\r\n    if (password !== confirm) {\r\n      showMsg(\"Passwords do not match.\", false);\r\n      return;\r\n    }\r\n\r\n    submitBtn.disabled = true;\r\n\r\n    const formData = new FormData();\r\n    formData.append(\"action\", \"selfsea_reset_password\");\r\n    formData.append(\"password\", password);\r\n\r\n    if (key && login) {\r\n      formData.append(\"key\", key);\r\n      formData.append(\"login\", login);\r\n    }\r\n\r\n    try {\r\n      const response = await fetch(window.location.origin + \"\/staging\/wp-admin\/admin-ajax.php\", {\r\n        method: \"POST\",\r\n        body: formData,\r\n        credentials: \"same-origin\"\r\n      });\r\n\r\n      const data = await response.json();\r\n\r\n      if (data.success) {\r\n        showMsg(data.data.message, true);\r\n        setTimeout(function () {\r\n          window.location.href = data.data.redirect;\r\n        }, 1200);\r\n      } else {\r\n        showMsg(data.data.message || \"Something went wrong.\", false);\r\n      }\r\n    } catch (error) {\r\n      showMsg(\"Something went wrong. Please try again.\", false);\r\n    }\r\n\r\n    submitBtn.disabled = false;\r\n  }, true);\r\n});\r\n<\/script>\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<div class=\"elementor-element elementor-element-7007df2 e-con-full elementor-hidden-desktop elementor-hidden-tablet elementor-hidden-mobile e-flex e-con e-child\" data-id=\"7007df2\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"likebtn_container\" style=\"\"><!-- LikeBtn.com BEGIN --><span class=\"likebtn-wrapper\"  data-identifier=\"page_3134\"  data-site_id=\"69cae70cfa8fdf484b53ce90\"  data-style=\"\"  data-unlike_allowed=\"\"  data-show_copyright=\"\"  data-item_url=\"https:\/\/selfsea.org\/staging\/create-new-password\/\"  data-item_title=\"create-new-password\"  data-item_date=\"2026-04-07T08:41:48+00:00\"  data-engine=\"WordPress\"  data-plugin_v=\"2.6.59\"  data-prx=\"https:\/\/selfsea.org\/staging\/wp-admin\/admin-ajax.php?action=likebtn_prx\"  data-event_handler=\"likebtn_eh\" ><\/span><!-- LikeBtn.com END --><\/div>","protected":false},"excerpt":{"rendered":"<p>create new password<\/p>\n<div class=\"likebtn_container\" style=\"\"><!-- LikeBtn.com BEGIN --><span class=\"likebtn-wrapper\"  data-identifier=\"page_3134\"  data-site_id=\"69cae70cfa8fdf484b53ce90\"  data-style=\"\"  data-unlike_allowed=\"\"  data-show_copyright=\"\"  data-item_url=\"https:\/\/selfsea.org\/staging\/create-new-password\/\"  data-item_title=\"create-new-password\"  data-item_date=\"2026-04-07T08:41:48+00:00\"  data-engine=\"WordPress\"  data-plugin_v=\"2.6.59\"  data-prx=\"https:\/\/selfsea.org\/staging\/wp-admin\/admin-ajax.php?action=likebtn_prx\"  data-event_handler=\"likebtn_eh\" ><\/span><!-- LikeBtn.com END --><\/div>","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_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,"_angie_page":false,"footnotes":""},"class_list":["post-3134","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/selfsea.org\/staging\/wp-json\/wp\/v2\/pages\/3134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/selfsea.org\/staging\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/selfsea.org\/staging\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/selfsea.org\/staging\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/selfsea.org\/staging\/wp-json\/wp\/v2\/comments?post=3134"}],"version-history":[{"count":49,"href":"https:\/\/selfsea.org\/staging\/wp-json\/wp\/v2\/pages\/3134\/revisions"}],"predecessor-version":[{"id":8045,"href":"https:\/\/selfsea.org\/staging\/wp-json\/wp\/v2\/pages\/3134\/revisions\/8045"}],"wp:attachment":[{"href":"https:\/\/selfsea.org\/staging\/wp-json\/wp\/v2\/media?parent=3134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}