{"id":13,"date":"2020-07-22T20:46:12","date_gmt":"2020-07-22T18:46:12","guid":{"rendered":"http:\/\/localhost\/wordpress\/xinixinsurance.co.za\/?page_id=13"},"modified":"2024-06-14T08:25:25","modified_gmt":"2024-06-14T06:25:25","slug":"home","status":"publish","type":"page","link":"https:\/\/recordings.xinixinsurance.co.za\/","title":{"rendered":"Login"},"content":{"rendered":"\n<title>Login Form | Syfinity<\/title>\n    <link rel=\"stylesheet\" href=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.1.3\/css\/bootstrap.min.css\" integrity=\"sha384-MCw98\/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO\" crossorigin=\"anonymous\">\n    <script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.3.1\/jquery.min.js\"><\/script>\n    <link rel=\"stylesheet\" href=\"https:\/\/use.fontawesome.com\/releases\/v5.6.1\/css\/all.css\" integrity=\"sha384-gfdkjb5BdAXd+lj+gudLWI+BXq4IuLW5IT+brZEZsLFm++aCMlF1V92rMkPaX4PP\" crossorigin=\"anonymous\">\n    <link rel=\"stylesheet\" type=\"text\/css\" href=\"css\/style.css\">\n\n    <script type=\"text\/javascript\">\n\n        $(document).ready(function () {\n\n            $('#btnLogin').click(function () {\n\n                \n\n                var settings = {\n                    \"url\": \"https:\/\/xinix.services.xinixinsurance.co.za\/Api\/ClientLogin\/Login\",\n                    \"method\": \"POST\",\n                    \"timeout\": 0,\n                    \"headers\": {\n                        \"Content-Type\": \"application\/x-www-form-urlencoded\"\n                    },\n                    \"data\": {\n                        \"EmailAddress\": document.getElementById(\"txtUsername\").value,\/\/\"samantha@xinixinsurance.co.za\",\n                        \"Password\": document.getElementById(\"txtPassword\").value\/\/\"12345\"\n                    }\n                };\n\n                $.ajax(settings).done(function (response) {\n                   \/\/ console.log(response);\n                    Id = response.Id;\n                    \n                    if (Id != '0') {\n                        Role = response.Roles;\n                        \/\/alert(Role);\n                        Token = response.Token;\n                        \/\/Code is to store the token in the localStorage, to use in other pages\n                        sessionStorage.setItem(\"setToken\", Token);\n                        if (Role == 'Admin') {\n                            \/\/window.location = \"https:\/\/localhost:44344\/datatableAdmin.html\";\n                            window.location = \"https:\/\/recordings.xinixinsurance.co.za\/index.php\/recording-admin\/\";\n                            \/\/var x = sessionStorage.getItem(\"setToken\");\n                          \/\/  alert(Role );\n                        }\n  if (Role == 'User') {\n \/\/alert(Role );\n                            \/\/window.location = \"https:\/\/localhost:44344\/datatableAdmin.html\";\n                            window.location = \"https:\/\/recordings.xinixinsurance.co.za\/index.php\/recording-user\/\";\n                            \/\/var x = sessionStorage.getItem(\"setToken\");\n                            \/\/alert(x);\n                        }\n                         if (Role == 'Leads'){  \/\/alert(Role );\n                            \/\/window.location = \"https:\/\/localhost:44344\/datatableTest.html\";\n                            window.location = \"https:\/\/recordings.xinixinsurance.co.za\/index.php\/recording-leads\/\";\n                        }\n                    }\n                    else {\n                        alert(\"Login Error: Username or Password is incorrect.\");\n                       \/\/ document.getElementById(\"ErrorMessage\").value = \"Login Error: Username or Password is incorrect.\";\n                    }\n                    \n                });\n\n            });\n\n        });\n\n    <\/script>\n\n\n\n\n    <div class=\"container h-100\">\n        <div class=\"d-flex justify-content-center h-100\">\n            <div class=\"user_card\">\n                <div class=\"d-flex justify-content-center\">\n                    <div class=\"brand_logo_container\">\n                        <img decoding=\"async\" src=\"https:\/\/www.syfinity.com\/wp-content\/uploads\/2024\/06\/Syfinity-Logo-Only.jpg\" class=\"brand_logo\" alt=\"Logo\">\n                    <\/div>\n                <\/div>\n                <div class=\"d-flex justify-content-center form_container\">\n                    <form class=\"user_form\" id=\"loginForm\">\n                        <div class=\"input-group mb-3\">\n                            <div class=\"input-group-append\">\n                                <span class=\"input-group-text\"><i class=\"fas fa-user\"><\/i><\/span>\n                            <\/div>\n                            <input type=\"text\" id=\"txtUsername\" class=\"form-control input_user\" value=\"\" placeholder=\"username or email\">\n                        <\/div>\n                        <div class=\"input-group mb-2\">\n                            <div class=\"input-group-append\">\n                                <span class=\"input-group-text\"><i class=\"fas fa-key\"><\/i><\/span>\n                            <\/div>\n                            <input type=\"password\" id=\"txtPassword\" class=\"form-control input_pass\" value=\"\" placeholder=\"password\">\n                        <\/div>\n                        <div class=\"form-group\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input type=\"checkbox\" class=\"custom-control-input\" id=\"customControlInline\">\n                                <label class=\"custom-control-label\" for=\"customControlInline\">Remember Password<\/label>\n                            <\/div>\n                        <\/div>\n\n\n                        <div class=\"input-group mb-2\">\n                            <button type=\"button\" name=\"button\" class=\"btn login_btn\" id=\"btnLogin\" value=\"btnLogin\">Login<\/button>\n                        <\/div>\n                        \n                    <\/form>\n                <\/div>\n\n            <\/div>\n        <\/div>\n    <\/div>\n\n\n\n<div class=\"wp-block-divi-layout\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><\/h2>\n","protected":false},"excerpt":{"rendered":"<p>Login Form | Syfinity Remember Password Login<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"<!-- wp:html -->\n<title>Wordpress Login Form | XINIX<\/title>\n    <link rel=\"stylesheet\" href=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.1.3\/css\/bootstrap.min.css\" integrity=\"sha384-MCw98\/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO\" crossorigin=\"anonymous\">\n    <script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.3.1\/jquery.min.js\"><\/script>\n    <link rel=\"stylesheet\" href=\"https:\/\/use.fontawesome.com\/releases\/v5.6.1\/css\/all.css\" integrity=\"sha384-gfdkjb5BdAXd+lj+gudLWI+BXq4IuLW5IT+brZEZsLFm++aCMlF1V92rMkPaX4PP\" crossorigin=\"anonymous\">\n    <link rel=\"stylesheet\" type=\"text\/css\" href=\"css\/style.css\">\n\n    <script type=\"text\/javascript\">\n\n        $(document).ready(function () {\n\n            $('#btnLogin').click(function () {\n\n                \n\n                var settings = {\n                    \"url\": \"https:\/\/xinix.services.xinixinsurance.co.za\/Api\/ClientLogin\/Login\",\n                    \"method\": \"POST\",\n                    \"timeout\": 0,\n                    \"headers\": {\n                        \"Content-Type\": \"application\/x-www-form-urlencoded\"\n                    },\n                    \"data\": {\n                        \"EmailAddress\": document.getElementById(\"txtUsername\").value,\/\/\"samantha@xinixinsurance.co.za\",\n                        \"Password\": document.getElementById(\"txtPassword\").value\/\/\"12345\"\n                    }\n                };\n\n                $.ajax(settings).done(function (response) {\n                   \/\/ console.log(response);\n                    Id = response.Id;\n                    \n                    if (Id != '0') {\n                        Role = response.Roles;\n                        \/\/alert(Role);\n                        Token = response.Token;\n                        \/\/Code is to store the token in the localStorage, to use in other pages\n                        sessionStorage.setItem(\"setToken\", Token);\n                        if (Role == 'Admin') {\n                            \/\/window.location = \"https:\/\/localhost:44344\/datatableAdmin.html\";\n                            window.location = \"https:\/\/recordings.xinixinsurance.co.za\/index.php\/recording-admin\/\";\n                            \/\/var x = sessionStorage.getItem(\"setToken\");\n                          \/\/  alert(Role );\n                        }\n  if (Role == 'User') {\n \/\/alert(Role );\n                            \/\/window.location = \"https:\/\/localhost:44344\/datatableAdmin.html\";\n                            window.location = \"https:\/\/recordings.xinixinsurance.co.za\/index.php\/recording-user\/\";\n                            \/\/var x = sessionStorage.getItem(\"setToken\");\n                            \/\/alert(x);\n                        }\n                         if (Role == 'Leads'){  \/\/alert(Role );\n                            \/\/window.location = \"https:\/\/localhost:44344\/datatableTest.html\";\n                            window.location = \"https:\/\/recordings.xinixinsurance.co.za\/index.php\/recording-leads\/\";\n                        }\n                    }\n                    else {\n                        alert(\"Login Error: Username or Password is incorrect.\");\n                       \/\/ document.getElementById(\"ErrorMessage\").value = \"Login Error: Username or Password is incorrect.\";\n                    }\n                    \n                });\n\n            });\n\n        });\n\n    <\/script>\n\n\n\n\n    <div class=\"container h-100\">\n        <div class=\"d-flex justify-content-center h-100\">\n            <div class=\"user_card\">\n                <div class=\"d-flex justify-content-center\">\n                    <div class=\"brand_logo_container\">\n                        <img src=\"https:\/\/xinixinsurance.co.za\/wp-content\/uploads\/2020\/09\/Logo-App-White-1.png\" class=\"brand_logo\" alt=\"Logo\">\n                    <\/div>\n                <\/div>\n                <div class=\"d-flex justify-content-center form_container\">\n                    <form class=\"user_form\" id=\"loginForm\">\n                        <div class=\"input-group mb-3\">\n                            <div class=\"input-group-append\">\n                                <span class=\"input-group-text\"><i class=\"fas fa-user\"><\/i><\/span>\n                            <\/div>\n                            <input type=\"text\" id=\"txtUsername\" class=\"form-control input_user\" value=\"\" placeholder=\"username or email\">\n                        <\/div>\n                        <div class=\"input-group mb-2\">\n                            <div class=\"input-group-append\">\n                                <span class=\"input-group-text\"><i class=\"fas fa-key\"><\/i><\/span>\n                            <\/div>\n                            <input type=\"password\" id=\"txtPassword\" class=\"form-control input_pass\" value=\"\" placeholder=\"password\">\n                        <\/div>\n                        <div class=\"form-group\">\n                            <div class=\"custom-control custom-checkbox\">\n                                <input type=\"checkbox\" class=\"custom-control-input\" id=\"customControlInline\">\n                                <label class=\"custom-control-label\" for=\"customControlInline\">Remember Password<\/label>\n                            <\/div>\n                        <\/div>\n\n\n                        <div class=\"input-group mb-2\">\n                            <button type=\"button\" name=\"button\" class=\"btn login_btn\" id=\"btnLogin\" value=\"btnLogin\">Login<\/button>\n                        <\/div>\n                        \n                    <\/form>\n                <\/div>\n\n            <\/div>\n        <\/div>\n    <\/div>\n<!-- \/wp:html -->\n\n<!-- wp:divi\/layout -->\n<div class=\"wp-block-divi-layout\"><\/div>\n<!-- \/wp:divi\/layout -->\n\n<!-- wp:heading -->\n<h2><\/h2>\n<!-- \/wp:heading -->","_et_gb_content_width":"1080","footnotes":""},"class_list":["post-13","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/recordings.xinixinsurance.co.za\/index.php\/wp-json\/wp\/v2\/pages\/13","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/recordings.xinixinsurance.co.za\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/recordings.xinixinsurance.co.za\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/recordings.xinixinsurance.co.za\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/recordings.xinixinsurance.co.za\/index.php\/wp-json\/wp\/v2\/comments?post=13"}],"version-history":[{"count":121,"href":"https:\/\/recordings.xinixinsurance.co.za\/index.php\/wp-json\/wp\/v2\/pages\/13\/revisions"}],"predecessor-version":[{"id":501,"href":"https:\/\/recordings.xinixinsurance.co.za\/index.php\/wp-json\/wp\/v2\/pages\/13\/revisions\/501"}],"wp:attachment":[{"href":"https:\/\/recordings.xinixinsurance.co.za\/index.php\/wp-json\/wp\/v2\/media?parent=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}