{"id":150,"date":"2019-03-20T11:44:10","date_gmt":"2019-03-20T11:44:10","guid":{"rendered":"http:\/\/www.shamirpro.pt\/custom-forgot-password\/"},"modified":"2022-07-07T17:55:17","modified_gmt":"2022-07-07T16:55:17","slug":"forgot-password","status":"publish","type":"page","link":"https:\/\/pro.shamir.com\/pt\/forgot-password\/","title":{"rendered":"Forgot Password"},"content":{"rendered":"<section class=\"row-full-width registo flx-column\">\n\t<div class=\"left\">\n\t\t<div class=\"registo-card\">\n\t\t\t<div class=\"recover \">\n\t\t\t\t<img decoding=\"async\" src=\"https:\/\/pro.shamir.com\/pt\/wp-content\/themes\/shamir\/assets\/images\/logo_preto.svg\" alt=\"\">\n\t\t\t\t<div class=\"recover-top\">\n\t\t\t\t\t<span>Recuperar password<\/span>\n\t\t\t\t\t<span><\/span> <!-- DO NOT REMOVE: simple workaround for how the CSS for this area was done -->\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"recover-form\">\n\t\t\t\t\t<span>Deve digitar o email e valid\u00e1-lo para receber a nova password<\/span>\n\t\t\t\t\t<form action=\"https:\/\/pro.shamir.com\/pt\/wp-login.php?action=lostpassword\" method=\"post\">\n\t\t\t\t\t\t<div class=\"form-group vert field required\">\n\t\t\t\t\t\t\t<!-- input 'type' MUST be 'text' and 'name' MUST be 'user_login' -->\n\t\t\t\t\t\t\t<input type=\"text\" name=\"user_login\" id=\"email\">\n\t\t\t\t\t\t\t<div class=\"smooth-underline-cover\"><\/div>\n\t\t\t\t\t\t\t<label for=\"email\">Email<\/label>\n\t\t\t\t\t\t\t<span class=\"error-messages\">\n\t\t\t\t\t\t\t\t<p class=\"empty-field\">O email \u00e9 obrigat\u00f3rio<\/p>\n\t\t\t\t\t\t\t\t<p class=\"address-validity\">O email n\u00e3o v\u00e1lido<\/p>\n\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"form-group vert submit-group\">\n\t\t\t\t\t\t\t<input type=\"submit\" class=\"btn btn-gradient\" value=\"Recuperar\" \/>\n\t\t\t\t\t\t\t<a href=\"https:\/\/pro.shamir.com\/pt\/login\" class=\"\">Voltar<\/a>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/form>\n\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"recovery-result recovery-failure\">\n\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/pro.shamir.com\/pt\/wp-content\/themes\/shamir\/assets\/images\/svg\/alert_message.svg\" \/>\n\t\t\t\t\t<div>O e-mail n\u00e3o existe. Por favor, verifique se o e-mail foi correctamente inserido.<\/div>\n\t\t\t\t\t<button class=\"btn btn-gradient back-to-recovery\">Ok<\/button>\n\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"recovery-result recovery-success\">\n\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/pro.shamir.com\/pt\/wp-content\/themes\/shamir\/assets\/images\/svg\/confirm_message.svg\" \/>\n\t\t\t\t\t<div>We have received your request to send a new password to your email<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\t<\/div>\n\t<div class=\"right\"><\/div>\n\n<\/section>\n\n<script>\njQuery(document).ready(function() {\n\tjQuery('.recover .recovery-failure .back-to-recovery').click(function () {\n\t\tjQuery('.recover').removeClass('error');\n\t});\n\tif (jQuery('.recover').hasClass('success')) {\n\t\twindow.setTimeout(function () {\n\t\t\tjQuery('.recover').removeClass('success');\n\t\t}, 6000);\n\t}\n\tjQuery('.recover-form form').submit(function (event) {\n\t\tevent.preventDefault();\n\n\t\tlet canSubmit = true;\n\n\t\tconst emailField = jQuery(this).find('input');\n\n\t\tconst emailIsEmpty = emailField.val().length === 0;\n\n\t\tif (emailIsEmpty) {\n\t\t\tcanSubmit = false;\n\t\t\tjQuery('.error-messages .empty-field').addClass('show');\n\t\t\temailField.closest('.form-group').addClass('invalid');\n\t\t}\n\t\telse {\n\t\t\tjQuery('.error-messages .empty-field').removeClass('show');\n\t\t\tif (!emailFieldsAreValid()) {\n\t\t\t\tcanSubmit = false;\n\t\t\t\temailField.closest('.form-group').addClass('invalid');\n\t\t\t}\n\t\t}\n\n\t\tif (canSubmit) {\n\t\t\temailField.closest('.form-group').removeClass('invalid');\n\t\t\tthis.submit();\n\t\t}\n\t});\n});\n<\/script>\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":{"_acf_changed":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-150","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/pro.shamir.com\/pt\/wp-json\/wp\/v2\/pages\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pro.shamir.com\/pt\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pro.shamir.com\/pt\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pro.shamir.com\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pro.shamir.com\/pt\/wp-json\/wp\/v2\/comments?post=150"}],"version-history":[{"count":1,"href":"https:\/\/pro.shamir.com\/pt\/wp-json\/wp\/v2\/pages\/150\/revisions"}],"predecessor-version":[{"id":729,"href":"https:\/\/pro.shamir.com\/pt\/wp-json\/wp\/v2\/pages\/150\/revisions\/729"}],"wp:attachment":[{"href":"https:\/\/pro.shamir.com\/pt\/wp-json\/wp\/v2\/media?parent=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}