{"id":3563,"date":"2025-05-14T04:20:01","date_gmt":"2025-05-14T04:20:01","guid":{"rendered":"https:\/\/ncsfvietnam.com.vn\/?page_id=3563"},"modified":"2026-07-30T09:55:35","modified_gmt":"2026-07-30T09:55:35","slug":"dang-nhap","status":"publish","type":"page","link":"https:\/\/ncsfvietnam.com.vn\/vi\/dang-nhap\/","title":{"rendered":"\u0110\u0103ng nh\u1eadp"},"content":{"rendered":"\n\t<section class=\"section section-login is-full-height\" id=\"section_1860576470\">\n\t\t<div class=\"section-bg fill\" >\n\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1440\" height=\"900\" src=\"https:\/\/ncsfvietnam.com.vn\/wp-content\/uploads\/2025\/05\/Form-Contact.png\" class=\"bg attachment- size-\" alt=\"\" \/>\t\t\t\t\t\t\n\t\t\t\n\n\t\t<\/div>\n\n\t\t\n\n\t\t<div class=\"section-content relative\">\n\t\t\t\n<div class=\"row pb-0\"  id=\"row-18803376\">\n\n\t<div id=\"col-138827941\" class=\"col pb-0 medium-6 small-12 large-6\"  >\n\t\t\t\t<div class=\"col-inner\"  >\n\t\t\t\n\t\t\t\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\n\t\n\n\t<div id=\"col-358359950\" class=\"col medium-6 small-12 large-6\"  >\n\t\t\t\t<div class=\"col-inner\"  >\n\t\t\t\n\t\t\t\n    <div class=\"beautiful-login-form\">\n        <h3>\u0110\u0103ng nh\u1eadp<\/h3>\n\n        <div id=\"login-error\" style=\"color:red; display:none;\"><\/div>\n\n        <form method=\"post\" id=\"custom-login-form\" autocomplete=\"on\">\n            <input type=\"hidden\" name=\"redirect_to\" value=\"\/vi\/\" \/>\n\n            <label for=\"user_login\">\n                T\u00ean \u0111\u0103ng nh\u1eadp            <\/label>\n\n            <input\n                type=\"text\"\n                name=\"log\"\n                id=\"user_login\"\n                class=\"input\"\n                autocomplete=\"username\"\n                required\n            \/>\n\n            <label for=\"user_pass\">\n                M\u1eadt kh\u1ea9u            <\/label>\n\n            <input\n                type=\"password\"\n                name=\"pwd\"\n                id=\"user_pass\"\n                class=\"input\"\n                autocomplete=\"current-password\"\n                required\n            \/>\n\n            <input\n                type=\"submit\"\n                name=\"wp-submit\"\n                value=\"\u0110\u0103ng nh\u1eadp\"\n            \/>\n\n            <div id=\"loading\" class=\"loading\" style=\"display:none;\"><\/div>\n        <\/form>\n    <\/div>\n\n    <script>\n    (function() {\n        var form = document.getElementById('custom-login-form');\n        var errorBox = document.getElementById('login-error');\n        var loading = document.getElementById('loading');\n        var ajaxUrl = '\/wp-admin\/admin-ajax.php';\n        var lang = 'vi_VN';\n        var fallbackRedirect = '\/vi\/';\n\n        if (!form) return;\n\n        function withLoginFlag(url) {\n            var sep = url.indexOf('?') === -1 ? '?' : '&';\n            return url + sep + 'login_success=' + Date.now();\n        }\n\n        function b64UrlEncodeUtf8(str) {\n            var utf8 = unescape(encodeURIComponent(str));\n            var b64 = btoa(utf8);\n\n            return b64.replace(\/\\+\/g, '-').replace(\/\\\/\/g, '_').replace(\/=+$\/, '');\n        }\n\n        function setLoginNameCookie(name) {\n            if (!name) return;\n\n            var cookie = 'mt_login_name_b64=' + b64UrlEncodeUtf8(name) + '; path=\/; max-age=31536000';\n\n            if (location.protocol === 'https:') {\n                cookie += '; Secure';\n            }\n\n            document.cookie = cookie;\n\n            \/\/ X\u00f3a cookie c\u0169 b\u1ecb encode l\u1ed7i\n            document.cookie = 'mt_login_name=; Max-Age=0; path=\/';\n\n            if (location.protocol === 'https:') {\n                document.cookie = 'mt_login_name=; Max-Age=0; path=\/; Secure';\n            }\n        }\n\n        form.addEventListener('submit', function(e) {\n            e.preventDefault();\n\n            loading.style.display = 'block';\n            errorBox.innerHTML = '';\n            errorBox.style.display = 'none';\n\n            var data = new FormData(form);\n            data.append('action', 'ajax_custom_login');\n\n            fetch(ajaxUrl, {\n                method: 'POST',\n                credentials: 'same-origin',\n                body: data,\n                cache: 'no-store'\n            })\n            .then(function(res) {\n                return res.json();\n            })\n            .then(function(res) {\n                loading.style.display = 'none';\n\n                if (res.success) {\n                    if (res.display_name) {\n                        setLoginNameCookie(res.display_name);\n                    }\n\n                    window.location.href = withLoginFlag(res.redirect || fallbackRedirect);\n                    return;\n                }\n\n                errorBox.innerHTML = res.message || (\n                    lang === 'en_US'\n                        ? 'Login failed. Please try again.'\n                        : '\u0110\u0103ng nh\u1eadp th\u1ea5t b\u1ea1i. Vui l\u00f2ng th\u1eed l\u1ea1i.'\n                );\n\n                errorBox.style.display = 'block';\n            })\n            .catch(function() {\n                loading.style.display = 'none';\n\n                errorBox.innerHTML = lang === 'en_US'\n                    ? 'An error occurred. Please try again.'\n                    : 'C\u00f3 l\u1ed7i x\u1ea3y ra. Vui l\u00f2ng th\u1eed l\u1ea1i.';\n\n                errorBox.style.display = 'block';\n            });\n        });\n    })();\n    <\/script>\n    \n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\n\t\n<\/div>\n\t\t<\/div>\n\n\t\t\n<style>\n#section_1860576470 {\n  padding-top: 30px;\n  padding-bottom: 30px;\n  min-height: 100vh;\n}\n<\/style>\n\t<\/section>\n\t\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-blank.php","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-3563","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/ncsfvietnam.com.vn\/vi\/wp-json\/wp\/v2\/pages\/3563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ncsfvietnam.com.vn\/vi\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ncsfvietnam.com.vn\/vi\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ncsfvietnam.com.vn\/vi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ncsfvietnam.com.vn\/vi\/wp-json\/wp\/v2\/comments?post=3563"}],"version-history":[{"count":4,"href":"https:\/\/ncsfvietnam.com.vn\/vi\/wp-json\/wp\/v2\/pages\/3563\/revisions"}],"predecessor-version":[{"id":3955,"href":"https:\/\/ncsfvietnam.com.vn\/vi\/wp-json\/wp\/v2\/pages\/3563\/revisions\/3955"}],"wp:attachment":[{"href":"https:\/\/ncsfvietnam.com.vn\/vi\/wp-json\/wp\/v2\/media?parent=3563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}