(plain);
        }
        function login() {
            const data = {};
            $("form").serializeArray().forEach(item => {
                data[item.name] = item.value;
            });
            const ts = Date.now();
            const payload = JSON.stringify({
                n: window.nps.loginNonce,
                t: ts,
                p: data.password
            });
            data.password = encryptWithRSA(payload);
            $.ajax({
                type: "POST",
                url: