{"id":433,"date":"2025-02-28T13:01:02","date_gmt":"2025-02-28T13:01:02","guid":{"rendered":"https:\/\/laborimhorse.redbit.agency\/connexion\/"},"modified":"2025-03-03T08:34:22","modified_gmt":"2025-03-03T08:34:22","slug":"connexion","status":"publish","type":"page","link":"https:\/\/laborimhorse.redbit.agency\/fr\/connexion\/","title":{"rendered":"Connexion"},"content":{"rendered":"        <div class=\"ps-account\" style=\"max-width: 100%;\">\n            <div class=\"container\">\n                <div class=\"row justify-content-center pt-5 pb-5\">\n                    <div class=\"col-md-6 login\">\n                        <h2 class=\"title\">S&#039;identifier<\/h2>\n                        <form method=\"post\" id=\"custom-login-form\" class=\"woocommerce-form woocommerce-form-login login\">\n                            <div class=\"form-group\">\n                                <label>Nom d&#039;utilisateur ou Adresse E-mail<\/label>\n                                <input type=\"text\" class=\"form-control\" name=\"username\" id=\"username\" required \/>\n                            <\/div>\n                            <div class=\"form-group\">\n                                <label>Mot de passe<\/label>\n                                <input type=\"password\" class=\"form-control\" name=\"password\" id=\"password\" required \/>\n                                <small>\n                                    <a\n                                        href=\"https:\/\/laborimhorse.redbit.agency\/fr\/mon-compte\/lost-password\/\">Mot de passe oubli\u00e9 ?<\/a>\n                                <\/small>\n                            <\/div>\n                            <div class=\"form-check\">\n                                <input type=\"checkbox\" class=\"form-check-input\" name=\"rememberme\" id=\"rememberme\"\n                                    value=\"forever\" \/>\n                                <label class=\"form-check-label\"\n                                    for=\"rememberme\">Se souvenir de moi<\/label>\n                            <\/div>\n                            <button type=\"submit\" name=\"wp-submit\"\n                                class=\"mt-3 popup-login-btn mb-2 w-25 site-btn\">Se Connecter<\/button>\n                            <p>Nouvel utilisateur? <a\n                                    href=\"https:\/\/laborimhorse.redbit.agency\/register\/\">Cr\u00e9er un compte<\/a>\n                            <\/p>\n                        <\/form>\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n        <div class=\"toast-area\" id=\"toasts\"><\/div>\n        <script>\n            jQuery(document).ready(function ($) {\n                $('#custom-login-form').on('submit', function (e) {\n                    e.preventDefault();\n                    $(\".popup-login-btn\").html('<i class=\"fa fa-circle-o-notch fa-spin\" aria-hidden=\"true\"><\/i>');\n                    $(\".popup-login-btn\").prop('disabled', true);\n                    let formData = {\n                        action: 'custom_user_login',\n                        username: $('#username').val(),\n                        password: $('#password').val(),\n                    };\n                    $.post('https:\/\/laborimhorse.redbit.agency\/wp-admin\/admin-ajax.php', formData, function (response) {\n                        if (response.success) {\n                            setTimeout(() => { window.location.href = \"https:\/\/laborimhorse.redbit.agency\/fr\/\"; }, 500);\n                        } else {\n                            $(\".popup-login-btn\").html('Log In');\n                            $(\".popup-login-btn\").prop('disabled', false);\n                            appendToast(response.data.message, \"red\");\n                        }\n                    });\n                });\n            });\n            function appendToast(msg, color) {\n                let toastContainer = document.getElementById(\"toasts\");\n                if (!toastContainer) {\n                    toastContainer = document.createElement(\"div\");\n                    toastContainer.setAttribute(\"id\", \"toasts\");\n                    document.body.appendChild(toastContainer);\n                }\n                let toast = document.createElement(\"div\");\n                toast.className = \"toast1\";\n                toast.innerHTML = `\n                    <div class=\"toast-content ${color}\">\n                        <div class=\"message\">\n                            <div class=\"info_icon\">\n                                <svg fill=\"#FFF\" viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                    <g id=\"SVGRepo_iconCarrier\">\n                                        <path d=\"M30.535 28.373c-1.809-1.73-3.119-3.968-3.7-6.485l-0.017-0.088c1.782-1.921 2.888-4.489 2.932-7.315l0-0.009c0-6.686-6.393-12.124-14.25-12.124s-14.25 5.438-14.25 12.124 6.393 12.125 14.25 12.125c0.004 0 0.009 0 0.014 0 1.883 0 3.691-0.319 5.374-0.906l-0.114 0.035c2.528 1.962 5.604 3.343 8.96 3.887l0.115 0.015c0.046 0.010 0.098 0.015 0.152 0.016h0c0.414-0 0.75-0.336 0.75-0.75 0-0.205-0.082-0.39-0.215-0.526l0 0zM21.426 24.348c-0.010-0.009-0.025-0.004-0.035-0.013-0.128-0.11-0.296-0.177-0.479-0.177h-0c-0.022 0-0.039 0.007-0.061 0.009-0.070 0.001-0.137 0.011-0.2 0.030l0.005-0.001c-1.516 0.574-3.269 0.906-5.099 0.906-0.020 0-0.040-0-0.060-0h0.003c-7.030 0-12.75-4.766-12.75-10.625s5.72-10.624 12.75-10.624c7.031 0 12.75 4.766 12.75 10.624-0.024 2.593-1.087 4.934-2.791 6.63l-0 0-0.010 0.026c-0.111 0.124-0.18 0.288-0.183 0.468v0.001c-0.001 0.015-0.002 0.033-0.002 0.050 0 0.007 0 0.014 0 0.022l-0-0.001c-0.002 0.017-0.002 0.037-0.002 0.058 0 0.008 0 0.016 0 0.024l-0-0.001c0.415 2.246 1.34 4.227 2.652 5.887l-0.021-0.028c-2.496-0.614-4.669-1.747-6.49-3.285l0.024 0.019z\"><\/path>\n                                    <\/g>\n                                <\/svg>\n                            <\/div>\n                            <div class=\"message_text\"><p>${msg}<\/p><\/div>\n                        <\/div>\n                        <div class=\"close close-black\" title=\"Close\" onclick=\"this.parentElement.parentElement.remove()\">\n                            <svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <path d=\"M16 8L8 16M8 8L16 16\" stroke=\"#000000\" stroke-width=\"2\" stroke-linecap=\"round\"><\/path>\n                            <\/svg>\n                        <\/div>\n                    <\/div>\n                `;\n                toastContainer.appendChild(toast);\n                setTimeout(() => {\n                    toast.style.animation = \"toast .5s ease-out forwards\";\n                    setTimeout(() => toast.remove(), 2000);\n                }, 5000);\n            }\n        <\/script>\n        \n","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-433","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/laborimhorse.redbit.agency\/fr\/wp-json\/wp\/v2\/pages\/433","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/laborimhorse.redbit.agency\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/laborimhorse.redbit.agency\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/laborimhorse.redbit.agency\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/laborimhorse.redbit.agency\/fr\/wp-json\/wp\/v2\/comments?post=433"}],"version-history":[{"count":1,"href":"https:\/\/laborimhorse.redbit.agency\/fr\/wp-json\/wp\/v2\/pages\/433\/revisions"}],"predecessor-version":[{"id":434,"href":"https:\/\/laborimhorse.redbit.agency\/fr\/wp-json\/wp\/v2\/pages\/433\/revisions\/434"}],"wp:attachment":[{"href":"https:\/\/laborimhorse.redbit.agency\/fr\/wp-json\/wp\/v2\/media?parent=433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}