{"id":4246,"date":"2025-08-27T13:35:33","date_gmt":"2025-08-27T13:35:33","guid":{"rendered":"https:\/\/sharp.ca\/?page_id=4246"},"modified":"2025-10-09T19:41:47","modified_gmt":"2025-10-09T19:41:47","slug":"reset-password","status":"publish","type":"page","link":"https:\/\/sharp.ca\/en\/reset-password\/","title":{"rendered":"Reset Password"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"4246\" class=\"elementor elementor-4246\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-bf99436 e-flex e-con-boxed e-con e-child\" data-id=\"bf99436\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-b1df728 e-con-full e-flex e-con e-child\" data-id=\"b1df728\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5021f0b elementor-widget__width-initial elementor-invisible elementor-widget elementor-widget-heading\" data-id=\"5021f0b\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;_animation&quot;:&quot;fadeInUp&quot;}\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">Reset Password<\/h1>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-8fae7d0 e-flex e-con-boxed e-con e-parent\" data-id=\"8fae7d0\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-806bd49 elementor-widget elementor-widget-shortcode\" data-id=\"806bd49\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><div class=\"reset-password-form-wrapper\">\n\t<form name=\"spc-reset-password-form\" id=\"spc-reset-password-form\" action=\"\" method=\"post\">\n\t\t<div class=\"custom-form-row\">\n\t\t\t<label data-error=\"wrong\" data-success=\"right\" for=\"password\">Password<span class=\"text-danger\">*<\/span><\/label>\n\t\t\t<div class=\"custom-form-row-icon\">\t\t            \n\t\t\t\t<input type=\"password\" id=\"password\" name=\"password\" placeholder=\"Password\" class=\"form-control\" >\n\t\t\t\t<div class=\"invalid-feedback\" id=\"password-error\"><\/div>\n\t\t\t<\/div>\n\t\t<\/div>\t\n\t\t<div class=\"custom-form-row\">\n\t\t\t<label data-error=\"wrong\" data-success=\"right\" for=\"confirm_password\">Confirm Password<span class=\"text-danger\">*<\/span><\/label>\n\t\t\t<div class=\"custom-form-row-icon\">\t\t            \n\t\t\t\t<input type=\"password\" id=\"confirm_password\" name=\"confirm_password\" placeholder=\"Confirm Password\" class=\"form-control\" >\n\t\t\t\t<div class=\"invalid-feedback\" id=\"confirm-password-error\"><\/div>\n\t\t\t<\/div>\n\t\t<\/div>\t    \n\t\t<div class=\"text-center mt-2\">\n\t\t\t<button type=\"button\" id=\"reset-password-button\" class=\"btn btn-info\">\n\t\t\t\tReset\t\t\t\t<em class=\"fas fa-sign-in ml-1\"><\/em>\n\t\t\t<\/button>\n\t\t\t<input type=\"hidden\" name=\"password_reset_code\" value=\"\" >\n\t\t<\/div>\n\t<\/form>\n<\/div>\n\n<script>\n\tjQuery(document).ready(function($){\n\n\t\tvar baseURL= 'https:\/\/productadmin.sharp.ca\/'+'api\/';\n\n\n\t\tconst url = window.location.href;\n\t\tconst token = new URL(url).searchParams.get('token');    \t\n\n\t\tif(token){\n\n\t\t\t$.ajax({\n\t\t\t\tdata: { password_reset_code: token },\n\t\t\t\ttype: \"POST\",\n\t\t\t\turl: `${baseURL}auth\/verifyPasswordResetCode`,\n\t\t\t\tasync: !0,\n\t\t\t\tsuccess: function(e) {\n\n\t\t\t\t\tvar s = JSON.parse(e);\n\t\t\t\t\tconsole.log(e);  \n\n\t\t\t\t\tif (1 == s.is_verify) {\n\n\t\t\t\t\t\tSwal.fire({\n\t\t\t\t\t\t\ttitle: 'Success!',\n\t\t\t\t\t\t\ttext: s.msg,\n\t\t\t\t\t\t\ticon: 'success',\n\t\t\t\t\t\t\tconfirmButtonText: 'OK'\n\t\t\t\t\t\t});                    \t\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tSwal.fire({\n\t\t\t\t\t\t\ttitle: 'Error!',\n\t\t\t\t\t\t\ttext: s.msg,\n\t\t\t\t\t\t\ticon: 'error',\n\t\t\t\t\t\t\tconfirmButtonText: 'OK'\n\t\t\t\t\t\t});   \n\t\t\t\t\t}                \n\t\t\t\t}\n\t\t\t});\n\n\t\t}\n\t\telse{\n\n\t\t\tSwal.fire({\n\t\t\t\ttitle: 'Error!',\n\t\t\t\ttext: 'You are accessing this page without token',\n\t\t\t\ticon: 'error',\n\t\t\t\tconfirmButtonText: 'OK'\n\t\t\t});\n\t\t}\n\n\n\n\t\t\/\/ Function to validate password\n        function validatePassword() {\n            const password = $(\"#password\").val();\n            let isValid = true;\n            \n            \/\/ Clear previous errors\n            $(\"#password-error\").text(\"\");\n            $(\"#password\").removeClass(\"is-invalid\");\n            \n            \/\/ Check if password is empty\n            if (!password) {\n                $(\"#password-error\").text(\"Password is required\");\n                $(\"#password\").addClass(\"is-invalid\");\n                isValid = false;\n            } \n            \/\/ Check password strength (at least 8 chars, one uppercase, one lowercase, one number, one special char)\n            else if (!\/^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[@$!%*?&])[A-Za-z\\d@$!%*?&]{8,}$\/.test(password)) {\n                $(\"#password-error\").text(\"Password must be at least 8 characters with one uppercase, one lowercase, one number, and one special character\");\n                $(\"#password\").addClass(\"is-invalid\");\n                isValid = false;\n            }\n            \n            return isValid;\n        }\n        \n        \/\/ Function to validate confirm password\n        function validateConfirmPassword() {\n            const password = $(\"#password\").val();\n            const confirmPassword = $(\"#confirm_password\").val();\n            let isValid = true;\n            \n            \/\/ Clear previous errors\n            $(\"#confirm-password-error\").text(\"\");\n            $(\"#confirm_password\").removeClass(\"is-invalid\");\n            \n            \/\/ Check if confirm password is empty\n            if (!confirmPassword) {\n                $(\"#confirm-password-error\").text(\"Please confirm your password\");\n                $(\"#confirm_password\").addClass(\"is-invalid\");\n                isValid = false;\n            } \n            \/\/ Check if passwords match\n            else if (password !== confirmPassword) {\n                $(\"#confirm-password-error\").text(\"Passwords do not match\");\n                $(\"#confirm_password\").addClass(\"is-invalid\");\n                isValid = false;\n            }\n            \n            return isValid;\n        }\n        \n        \/\/ Validate fields on input change\n        $(\"#password\").on(\"input\", function() {\n            validatePassword();\n            \/\/ Also validate confirm password when password changes\n            if ($(\"#confirm_password\").val()) {\n                validateConfirmPassword();\n            }\n        });\n        \n        $(\"#confirm_password\").on(\"input\", function() {\n            validateConfirmPassword();\n        });\n        \n        \/\/ Handle reset password button click\n        $(\"#reset-password-button\").on(\"click\", function() {\n            const isPasswordValid = validatePassword();\n            const isConfirmPasswordValid = validateConfirmPassword();\n            \n            if (!isPasswordValid || !isConfirmPasswordValid) {\n                return;\n            }\n            \n            \/\/ Simulate API call for demonstration\n            var baseURL = 'https:\/\/productadmin.sharp.ca\/'+'api\/';\n            $(\"#reset-password-button\").html('Please wait <i class=\"fas fa-spinner fa-spin ml-1\"><\/i>');\n            \n          \n            \/* \n            \/\/ This is a simulation - in real scenario you would make an AJAX call\n            setTimeout(function() {\n                \/\/ Simulate successful response\n                const success = Math.random() > 0.5; \/\/ Random success\/failure for demo\n                \n                if (success) {\n                    Swal.fire({\n                        title: 'Success!',\n                        text: 'Your password has been reset successfully.',\n                        icon: 'success',\n                        confirmButtonText: 'OK'\n                    }).then(() => {\n                        \/\/ Redirect to homepage after success\n                        window.location.href = 'https:\/\/sharp.ca';\n                    });\n                } else {\n                    \/\/ Simulate field-specific error from API\n                    $(\"#password\").addClass(\"is-invalid\");\n                    $(\"#password-error\").text(\"This password has been used before. Please choose a different one.\");\n                    \n                    Swal.fire({\n                        title: 'Error!',\n                        text: 'There was a problem resetting your password.',\n                        icon: 'error',\n                        confirmButtonText: 'OK'\n                    });\n                }\n                \n                $(\"#reset-password-button\").html('Reset Password <em class=\"fas fa-key ml-1\"><\/em>');\n            }, 1500);\n\n            *\/\n\n            $.ajax({\n                    data: $(\"#spc-reset-password-form\").serialize(),\n                    type: \"POST\",\n                    url: `${baseURL}auth\/resetPassword`,\n                    async: !0,\n                    success: function(e) {\n                        var s = JSON.parse(e);\n                        console.log(s);\n                        if (1 == s.status) {                           \n                           Swal.fire({\n                              title: 'Success!',\n                              text: s.msg,\n                              icon: 'success',\n                              confirmButtonText: 'OK'\n                            }); \n                           window.location.href = 'https:\/\/sharp.ca';\n                        } else {\n                            Swal.fire({\n                              title: 'Error!',\n                              text: s.msg,\n                              icon: 'error',\n                              confirmButtonText: 'OK'\n                            });\n                        }\n                    }\n                });\n        });\n\n\n\t});\n<\/script>\n\n\n<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Reset Password<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-4246","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Reset Password | Sharp Canada Leadership<\/title>\n<meta name=\"description\" content=\"Read a message from Carmine Cinerari, President of Sharp Electronics of Canada Ltd., highlighting Sharp&#039;s commitment to innovation, sustainability, and enhancing lives through technology.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sharp.ca\/en\/reset-password\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Reset Password | Sharp Canada Leadership\" \/>\n<meta property=\"og:description\" content=\"Read a message from Carmine Cinerari, President of Sharp Electronics of Canada Ltd., highlighting Sharp&#039;s commitment to innovation, sustainability, and enhancing lives through technology.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sharp.ca\/en\/reset-password\/\" \/>\n<meta property=\"og:site_name\" content=\"Sharp Electronics of Canada Ltd\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-09T19:41:47+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sharp.ca\\\/en\\\/reset-password\\\/\",\"url\":\"https:\\\/\\\/sharp.ca\\\/en\\\/reset-password\\\/\",\"name\":\"Reset Password | Sharp Canada Leadership\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sharp.ca\\\/en\\\/#website\"},\"datePublished\":\"2025-08-27T13:35:33+00:00\",\"dateModified\":\"2025-10-09T19:41:47+00:00\",\"description\":\"Read a message from Carmine Cinerari, President of Sharp Electronics of Canada Ltd., highlighting Sharp's commitment to innovation, sustainability, and enhancing lives through technology.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sharp.ca\\\/en\\\/reset-password\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sharp.ca\\\/en\\\/reset-password\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sharp.ca\\\/en\\\/reset-password\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home | About Us\",\"item\":\"https:\\\/\\\/sharp.ca\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Reset Password\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sharp.ca\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/sharp.ca\\\/en\\\/\",\"name\":\"Sharp Electronics of Canada Ltd\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/sharp.ca\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/sharp.ca\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/sharp.ca\\\/en\\\/#organization\",\"name\":\"Sharp Electronics of Canada Ltd\",\"url\":\"https:\\\/\\\/sharp.ca\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/sharp.ca\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/sharp.ca\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/Sharp_logo-200.png\",\"contentUrl\":\"https:\\\/\\\/sharp.ca\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/Sharp_logo-200.png\",\"width\":200,\"height\":55,\"caption\":\"Sharp Electronics of Canada Ltd\"},\"image\":{\"@id\":\"https:\\\/\\\/sharp.ca\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Reset Password | Sharp Canada Leadership","description":"Read a message from Carmine Cinerari, President of Sharp Electronics of Canada Ltd., highlighting Sharp's commitment to innovation, sustainability, and enhancing lives through technology.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/sharp.ca\/en\/reset-password\/","og_locale":"en_US","og_type":"article","og_title":"Reset Password | Sharp Canada Leadership","og_description":"Read a message from Carmine Cinerari, President of Sharp Electronics of Canada Ltd., highlighting Sharp's commitment to innovation, sustainability, and enhancing lives through technology.","og_url":"https:\/\/sharp.ca\/en\/reset-password\/","og_site_name":"Sharp Electronics of Canada Ltd","article_modified_time":"2025-10-09T19:41:47+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/sharp.ca\/en\/reset-password\/","url":"https:\/\/sharp.ca\/en\/reset-password\/","name":"Reset Password | Sharp Canada Leadership","isPartOf":{"@id":"https:\/\/sharp.ca\/en\/#website"},"datePublished":"2025-08-27T13:35:33+00:00","dateModified":"2025-10-09T19:41:47+00:00","description":"Read a message from Carmine Cinerari, President of Sharp Electronics of Canada Ltd., highlighting Sharp's commitment to innovation, sustainability, and enhancing lives through technology.","breadcrumb":{"@id":"https:\/\/sharp.ca\/en\/reset-password\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sharp.ca\/en\/reset-password\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/sharp.ca\/en\/reset-password\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home | About Us","item":"https:\/\/sharp.ca\/en\/"},{"@type":"ListItem","position":2,"name":"Reset Password"}]},{"@type":"WebSite","@id":"https:\/\/sharp.ca\/en\/#website","url":"https:\/\/sharp.ca\/en\/","name":"Sharp Electronics of Canada Ltd","description":"","publisher":{"@id":"https:\/\/sharp.ca\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sharp.ca\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/sharp.ca\/en\/#organization","name":"Sharp Electronics of Canada Ltd","url":"https:\/\/sharp.ca\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sharp.ca\/en\/#\/schema\/logo\/image\/","url":"https:\/\/sharp.ca\/wp-content\/uploads\/2026\/01\/Sharp_logo-200.png","contentUrl":"https:\/\/sharp.ca\/wp-content\/uploads\/2026\/01\/Sharp_logo-200.png","width":200,"height":55,"caption":"Sharp Electronics of Canada Ltd"},"image":{"@id":"https:\/\/sharp.ca\/en\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/sharp.ca\/en\/wp-json\/wp\/v2\/pages\/4246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sharp.ca\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sharp.ca\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sharp.ca\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sharp.ca\/en\/wp-json\/wp\/v2\/comments?post=4246"}],"version-history":[{"count":3,"href":"https:\/\/sharp.ca\/en\/wp-json\/wp\/v2\/pages\/4246\/revisions"}],"predecessor-version":[{"id":9167,"href":"https:\/\/sharp.ca\/en\/wp-json\/wp\/v2\/pages\/4246\/revisions\/9167"}],"wp:attachment":[{"href":"https:\/\/sharp.ca\/en\/wp-json\/wp\/v2\/media?parent=4246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}