{"id":13,"date":"2026-03-27T15:52:53","date_gmt":"2026-03-27T15:52:53","guid":{"rendered":"https:\/\/edora.azdigi.shop\/index.php\/my-account\/"},"modified":"2026-05-15T08:24:14","modified_gmt":"2026-05-15T08:24:14","slug":"my-account","status":"publish","type":"page","link":"https:\/\/edora.azdigi.shop\/index.php\/my-account\/","title":{"rendered":"My account"},"content":{"rendered":"<div class=\"woocommerce\"><\/div>\n\n<style>\r\n\r\n    .auth-box {\r\n        max-width: 450px;\r\n        margin: 40px auto;\r\n        padding: 30px;\r\n        background: #FF8C00;\r\n        border-radius: 15px;\r\n        box-shadow: 0 10px 25px #FF8C00;\r\n        font-family: 'Poppins', sans-serif;\r\n    }\r\n    .auth-box header {\r\n        font-size: 28px;\r\n        font-weight: 600;\r\n        text-align: center;\r\n        color: #000000;\r\n        margin-bottom: 25px;\r\n        font-family: 'Lora', serif;\r\n    }\r\n    .auth-box input:not([type=\"submit\"]) {\r\n        width: 100%;\r\n        padding: 12px 15px;\r\n        margin-bottom: 15px;\r\n        border: 1px solid #FF8C00;\r\n        border-radius: 8px;\r\n        box-sizing: border-box;\r\n        display: block;\r\n    }\r\n    .auth-box .button {\r\n        width: 100%;\r\n        padding: 12px;\r\n        background: #FF8C00; \r\n        color: white;\r\n        border: none;\r\n        border-radius: 8px;\r\n        font-weight: bold;\r\n        cursor: pointer;\r\n        transition: 0.3s;\r\n    }\r\n    .auth-box .button:hover { background: #FF8C00; }\r\n    .auth-box .switch-text {\r\n        text-align: center;\r\n        margin-top: 20px;\r\n        font-size: 14px;\r\n    }\r\n    .auth-box a {\r\n        color: #FF8C00;\r\n        text-decoration: none;\r\n        font-weight: 600;\r\n        cursor: pointer;\r\n    }\r\n    \/* M\u1eb7c \u0111\u1ecbnh \u1ea9n form \u0111\u0103ng k\u00fd *\/\r\n    #register-form-wrapper { display: none; }\r\n<\/style>\r\n\r\n<div class=\"auth-box\">\r\n    <div id=\"login-form-wrapper\">\r\n        <header>\u0110\u0103ng nh\u1eadp<\/header>\r\n        <form id=\"loginForm\">\r\n            <input type=\"email\" id=\"loginEmail\" placeholder=\"Nh\u1eadp email c\u1ee7a b\u1ea1n\" required>\r\n            <input type=\"password\" id=\"loginPassword\" placeholder=\"Nh\u1eadp m\u1eadt kh\u1ea9u\" required>\r\n            <input type=\"submit\" class=\"button\" value=\"\u0110\u0103ng nh\u1eadp\">\r\n        <\/form>\r\n        <div class=\"switch-text\">\r\n            B\u1ea1n ch\u01b0a c\u00f3 t\u00e0i kho\u1ea3n? <a id=\"btn-show-register\">\u0110\u0103ng k\u00fd<\/a>\r\n        <\/div>\r\n    <\/div>\r\n\r\n    <div id=\"register-form-wrapper\">\r\n        <header>\u0110\u0103ng k\u00fd<\/header>\r\n        <form id=\"signupForm\">\r\n            <input type=\"text\" id=\"fullName\" placeholder=\"Nh\u1eadp h\u1ecd t\u00ean c\u1ee7a b\u1ea1n\" required>\r\n            <input type=\"text\" id=\"phone\" placeholder=\"Nh\u1eadp s\u1ed1 \u0111i\u1ec7n tho\u1ea1i c\u1ee7a b\u1ea1n\" required>\r\n            <input type=\"email\" id=\"email\" placeholder=\"Nh\u1eadp email c\u1ee7a b\u1ea1n (@gmail.com)\" required>\r\n            <input type=\"password\" id=\"password\" placeholder=\"T\u1ea1o m\u1eadt kh\u1ea9u\" required>\r\n            <input type=\"password\" id=\"confirmPassword\" placeholder=\"X\u00e1c nh\u1eadn m\u1eadt kh\u1ea9u\" required>\r\n            <input type=\"submit\" class=\"button\" value=\"\u0110\u0103ng k\u00fd\">\r\n        <\/form>\r\n        <div class=\"switch-text\">\r\n            B\u1ea1n \u0111\u00e3 c\u00f3 t\u00e0i kho\u1ea3n? <a id=\"btn-show-login\">\u0110\u0103ng nh\u1eadp<\/a>\r\n        <\/div>\r\n    <\/div>\r\n<\/div>\r\n\r\n<script>\r\ndocument.addEventListener('DOMContentLoaded', function () {\r\n    const loginWrap = document.getElementById('login-form-wrapper');\r\n    const registerWrap = document.getElementById('register-form-wrapper');\r\n\r\n    \/\/ Chuy\u1ec3n \u0111\u1ed5i qua l\u1ea1i gi\u1eefa 2 form\r\n    document.getElementById('btn-show-register').onclick = () => {\r\n        loginWrap.style.display = 'none';\r\n        registerWrap.style.display = 'block';\r\n    };\r\n    document.getElementById('btn-show-login').onclick = () => {\r\n        registerWrap.style.display = 'none';\r\n        loginWrap.style.display = 'block';\r\n    };\r\n\r\n    \/\/ --- LOGIC \u0110\u0102NG K\u00dd ---\r\n    const signupForm = document.querySelector('#signupForm');\r\n    if (signupForm) {\r\n        signupForm.addEventListener('submit', function (e) {\r\n            e.preventDefault();\r\n            const fullName = document.querySelector('#fullName').value.trim();\r\n            const phone = document.querySelector('#phone').value.trim();\r\n            const email = document.querySelector('#email').value.trim();\r\n            const password = document.querySelector('#password').value.trim();\r\n            const confirmPassword = document.querySelector('#confirmPassword').value.trim();\r\n\r\n            const namePattern = \/^[^0-9]+$\/;\r\n            const emailPattern = \/^[a-zA-Z0-9._-]+@gmail\\.com$\/;\r\n            const phonePattern = \/^\\d{10}$\/;\r\n            const passwordPattern = \/^[A-Z](?=.*\\d)(?=.*[@$!%*?&])[A-Za-z\\d@$!%*?&]{7,}$\/;\r\n\r\n            if (!namePattern.test(fullName)) return alert('H\u1ecd t\u00ean kh\u00f4ng \u0111\u01b0\u1ee3c ch\u1ee9a s\u1ed1!');\r\n            if (!emailPattern.test(email)) return alert('Email ph\u1ea3i c\u00f3 \u0111u\u00f4i @gmail.com!');\r\n            if (!phonePattern.test(phone)) return alert('S\u1ed1 \u0111i\u1ec7n tho\u1ea1i ph\u1ea3i \u0111\u00fang 10 s\u1ed1!');\r\n            if (!passwordPattern.test(password)) return alert('M\u1eadt kh\u1ea9u: 8 k\u00fd t\u1ef1, Ch\u1eef HOA \u0111\u1ea7u, c\u00f3 s\u1ed1 v\u00e0 k\u00fd t\u1ef1 \u0111\u1eb7c bi\u1ec7t!');\r\n            if (password !== confirmPassword) return alert('M\u1eadt kh\u1ea9u kh\u00f4ng tr\u00f9ng kh\u1edbp!');\r\n\r\n            const user = { fullName, phone, email, password };\r\n            localStorage.setItem('user', JSON.stringify(user));\r\n            alert('\u0110\u0103ng k\u00fd th\u00e0nh c\u00f4ng! H\u00e3y \u0111\u0103ng nh\u1eadp.');\r\n            document.getElementById('btn-show-login').click(); \/\/ T\u1ef1 chuy\u1ec3n sang form \u0111\u0103ng nh\u1eadp\r\n        });\r\n    }\r\n\r\n    \/\/ --- LOGIC \u0110\u0102NG NH\u1eacP ---\r\n    const loginForm = document.querySelector('#loginForm');\r\n    if (loginForm) {\r\n        loginForm.addEventListener('submit', function (e) {\r\n            e.preventDefault();\r\n            const email = document.querySelector('#loginEmail').value.trim();\r\n            const password = document.querySelector('#loginPassword').value.trim();\r\n            \r\n            const storedUser = JSON.parse(localStorage.getItem('user'));\r\n\r\n            if (storedUser && storedUser.email === email && storedUser.password === password) {\r\n                alert('\u0110\u0103ng nh\u1eadp th\u00e0nh c\u00f4ng!');\r\n                window.location.href = '\/'; \r\n            } else {\r\n                alert('Email ho\u1eb7c m\u1eadt kh\u1ea9u kh\u00f4ng ch\u00ednh x\u00e1c!');\r\n            }\r\n        });\r\n    }\r\n});\r\n<\/script>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-13","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>My account - EDORA<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/edora.azdigi.shop\/index.php\/my-account\/\" \/>\n<meta property=\"og:locale\" content=\"vi_VN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"My account - EDORA\" \/>\n<meta property=\"og:url\" content=\"https:\/\/edora.azdigi.shop\/index.php\/my-account\/\" \/>\n<meta property=\"og:site_name\" content=\"EDORA\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-15T08:24:14+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/edora.azdigi.shop\\\/index.php\\\/my-account\\\/\",\"url\":\"https:\\\/\\\/edora.azdigi.shop\\\/index.php\\\/my-account\\\/\",\"name\":\"My account - EDORA\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/edora.azdigi.shop\\\/#website\"},\"datePublished\":\"2026-03-27T15:52:53+00:00\",\"dateModified\":\"2026-05-15T08:24:14+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/edora.azdigi.shop\\\/index.php\\\/my-account\\\/#breadcrumb\"},\"inLanguage\":\"vi\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/edora.azdigi.shop\\\/index.php\\\/my-account\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/edora.azdigi.shop\\\/index.php\\\/my-account\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Trang ch\u1ee7\",\"item\":\"https:\\\/\\\/edora.azdigi.shop\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"My account\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/edora.azdigi.shop\\\/#website\",\"url\":\"https:\\\/\\\/edora.azdigi.shop\\\/\",\"name\":\"EDORA\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/edora.azdigi.shop\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"vi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"My account - EDORA","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:\/\/edora.azdigi.shop\/index.php\/my-account\/","og_locale":"vi_VN","og_type":"article","og_title":"My account - EDORA","og_url":"https:\/\/edora.azdigi.shop\/index.php\/my-account\/","og_site_name":"EDORA","article_modified_time":"2026-05-15T08:24:14+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/edora.azdigi.shop\/index.php\/my-account\/","url":"https:\/\/edora.azdigi.shop\/index.php\/my-account\/","name":"My account - EDORA","isPartOf":{"@id":"https:\/\/edora.azdigi.shop\/#website"},"datePublished":"2026-03-27T15:52:53+00:00","dateModified":"2026-05-15T08:24:14+00:00","breadcrumb":{"@id":"https:\/\/edora.azdigi.shop\/index.php\/my-account\/#breadcrumb"},"inLanguage":"vi","potentialAction":[{"@type":"ReadAction","target":["https:\/\/edora.azdigi.shop\/index.php\/my-account\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/edora.azdigi.shop\/index.php\/my-account\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Trang ch\u1ee7","item":"https:\/\/edora.azdigi.shop\/"},{"@type":"ListItem","position":2,"name":"My account"}]},{"@type":"WebSite","@id":"https:\/\/edora.azdigi.shop\/#website","url":"https:\/\/edora.azdigi.shop\/","name":"EDORA","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/edora.azdigi.shop\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"vi"}]}},"_links":{"self":[{"href":"https:\/\/edora.azdigi.shop\/index.php\/wp-json\/wp\/v2\/pages\/13","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/edora.azdigi.shop\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/edora.azdigi.shop\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/edora.azdigi.shop\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/edora.azdigi.shop\/index.php\/wp-json\/wp\/v2\/comments?post=13"}],"version-history":[{"count":13,"href":"https:\/\/edora.azdigi.shop\/index.php\/wp-json\/wp\/v2\/pages\/13\/revisions"}],"predecessor-version":[{"id":803,"href":"https:\/\/edora.azdigi.shop\/index.php\/wp-json\/wp\/v2\/pages\/13\/revisions\/803"}],"wp:attachment":[{"href":"https:\/\/edora.azdigi.shop\/index.php\/wp-json\/wp\/v2\/media?parent=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}