{"id":142,"date":"2023-06-20T04:36:04","date_gmt":"2023-06-20T04:36:04","guid":{"rendered":"https:\/\/cmj.uqam.ca\/?page_id=142"},"modified":"2023-11-03T16:14:27","modified_gmt":"2023-11-03T16:14:27","slug":"connect-or-register","status":"publish","type":"page","link":"https:\/\/cmj.uqam.ca\/?page_id=142","title":{"rendered":"Connect or Register"},"content":{"rendered":"\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td>\r\n<h3>CMJ login and registration<\/h3>\r\n\r\n<p class=\"ifNotLoggedIn\">Connexion<\/p>\r\n\r\n\r\n\r\n<div id=\"user-registration\" class=\"user-registration\">\n<div class=\"ur-frontend-form login  \" id=\"ur-frontend-form\">\n\t\t<form class=\"user-registration-form user-registration-form-login login\" method=\"post\">\n\t\t<div class=\"ur-form-row\">\n\t\t\t<div class=\"ur-form-grid\">\n\t\t\t\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\tclass=\" user-registration-form-row user-registration-form-row--wide form-row form-row-wide\"\n\t\t\t\t\tdata-field=\"username\">\n\t\t\t\t\t<label for=\"username\">Username or Email <span class=\"required\">*<\/span><\/label>\t\t\t\t\t<span class=\"input-wrapper\">\n\t\t\t\t\t\t<input placeholder=\"\" type=\"text\"\n\t\t\t\t\t\t\t\tclass=\"user-registration-Input user-registration-Input--text input-text\" name=\"username\"\n\t\t\t\t\t\t\t\tid=\"username\"\n\t\t\t\t\t\t\t   value=\"\"\n\t\t\t\t\t\t\t\tstyle=\"\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\/>\n\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\tclass=\" user-registration-form-row user-registration-form-row--wide form-row form-row-wide\"\n\t\t\t\t\t\tdata-field=\"password\">\n\t\t\t\t\t\t<label for=\"password\">Password <span class=\"required\">*<\/span><\/label>\t\t\t\t\t\t<span class=\"input-wrapper\">\n\t\t\t\t\t\t<span class=\"password-input-group\">\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tplaceholder=\"\"\n\t\t\t\t\t\t\tclass=\"user-registration-Input user-registration-Input--text input-text\" type=\"password\"\n\t\t\t\t\t\t\tname=\"password\" id=\"password\"\n\t\t\t\t\t\t\tstyle=\"\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\/>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"form-row\">\n\t\t\t\t\t<input type=\"hidden\" id=\"user-registration-login-nonce\" name=\"user-registration-login-nonce\" value=\"943457e2a3\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F142\" \/>\t\t\t\t\t\t<div class=\"user-registration-before-login-btn\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"\" data-field=\"remember-me\">\n\t\t\t\t\t\t\t\t\t<label\n\t\t\t\t\t\t\t\t\t\tclass=\"user-registration-form__label user-registration-form__label-for-checkbox inline\">\n\t\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\t\tclass=\"user-registration-form__input user-registration-form__input-checkbox\"\n\t\t\t\t\t\t\t\t\t\t\tname=\"rememberme\" type=\"checkbox\" id=\"rememberme\" value=\"forever\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\/>\n\t\t\t\t\t\t\t\t\t\t<span>Remember Me<\/span>\n\t\t\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div data-field=\"lost-password\"\n\t\t\t\t\t\t\t\t\tclass=\"user-registration-LostPassword lost_password \">\n\t\t\t\t\t\t\t\t\t<label\n\t\t\t\t\t\t\t\t\t\tclass=\"user-registration-form__label user-registration-form__label-for-checkbox inline\">\n\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/cmj.uqam.ca\/?page_id=57&#038;lost-password\">Lost your password?<\/a>\n\t\t\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div data-field=\"login-button\" class=\"\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button type=\"submit\"\n\t\t\t\t\t\t\t\tclass=\"user-registration-Button button ur-submit-button  \"\n\t\t\t\t\t\t\t\tname=\"login\"\n\t\t\t\t\t\t\t\tvalue=\"Login\">Login<\/button>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<input type=\"hidden\" name=\"redirect\"\n\t\t\t\t\t\tvalue=\"\"\/>\n\t\t\t\t<input type=\"hidden\" name=\"previous_page\" value=\"\"\/>\n\t\t\t\t<div class=\"user-registration-register register \" data-field=\"registration-setting\">\t\t\t\t\t\t\t<a href=\"https:\/\/cmj.uqam.ca\/?page_id=56\"> Not a member yet? Register now.\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t<\/div>\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t<\/form>\n<\/div>\n\n<\/div>\r\n\r\n<div class=\"ifNotLoggedIn\">\r\n<p>Registration<\/p>\r\n\r\n\r\n\r\n\t<div class='user-registration ur-frontend-form   ' id='user-registration-form-58'>\n\t\t\t\t\t\t\t\t<form method='post' class='register' data-form-id=\"58\"\n\t\t\t\tdata-enable-strength-password=\"\" data-minimum-password-strength=\"3\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t data-captcha-enabled=\"\">\n\n\t\t\t\t<div class=\"ur-form-row\" data-row-id=\"0\">\t\t\t\t\t\t\t<div class=\"ur-form-grid ur-grid-1\"\n\t\t\t\t\t\t\t\tstyle=\"width:99%\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div  data-field-id=\"user_login\" class=\"ur-field-item field-user_login \" data-ref-id=\"user_login\" data-field-pattern-enabled=\"0\" data-field-pattern-value=\" \" data-field-pattern-message=\" \">\n\t\t\t\t\t\t\t\t\t\t<div class=\"form-row validate-required\" id=\"user_login_field\" data-priority=\"\" ><label for=\"user_login\" class=\"ur-label\">Username <abbr class=\"required\" title=\"required\">*<\/abbr><\/label> <span class=\"input-wrapper\"> <input  data-rules=\"\" data-id=\"user_login\" type=\"text\" class=\"input-text   input-text ur-frontend-field  \" name=\"user_login\" id=\"user_login\" placeholder=\"\"  value=\"\" required=\"required\" data-label=\"Username\" data-username-character=\"1\"\/> <\/span> <\/div>\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div  data-field-id=\"user_pass\" class=\"ur-field-item field-user_pass \" data-ref-id=\"user_pass\" data-field-pattern-enabled=\"0\" data-field-pattern-value=\" \" data-field-pattern-message=\" \">\n\t\t\t\t\t\t\t\t\t\t<div class=\"form-row validate-required hide_show_password\" id=\"user_pass_field\" data-priority=\"\"><label for=\"user_pass\" class=\"ur-label\">User Password <abbr class=\"required\" title=\"required\">*<\/abbr><\/label> <span class=\"input-wrapper\"> <span class=\"password-input-group input-form-field-icons\"><input data-rules=\"\" data-id=\"user_pass\" type=\"password\" class=\"input-text  input-password ur-frontend-field  \" name=\"user_pass\" id=\"user_pass\" placeholder=\"\"  value=\"\" required=\"required\" data-label=\"User Password\" \/><\/span> <\/span> <\/div>\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div  data-field-id=\"user_email\" class=\"ur-field-item field-user_email \" data-ref-id=\"user_email\" data-field-pattern-enabled=\"0\" data-field-pattern-value=\" \" data-field-pattern-message=\" \">\n\t\t\t\t\t\t\t\t\t\t<div class=\"form-row validate-required\" id=\"user_email_field\" data-priority=\"\" ><label for=\"user_email\" class=\"ur-label\">User Email <abbr class=\"required\" title=\"required\">*<\/abbr><\/label> <span class=\"input-wrapper\"> <input  data-rules=\"\" data-id=\"user_email\" type=\"email\" class=\"input-text   input-email ur-frontend-field  \" name=\"user_email\" id=\"user_email\" placeholder=\"\"  value=\"\" required=\"required\" data-label=\"User Email\" \/> <\/span> <\/div>\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div  data-field-id=\"user_confirm_password\" class=\"ur-field-item field-user_confirm_password \" data-ref-id=\"user_confirm_password\" data-field-pattern-enabled=\"0\" data-field-pattern-value=\" \" data-field-pattern-message=\" \">\n\t\t\t\t\t\t\t\t\t\t<div class=\"form-row validate-required hide_show_password\" id=\"user_confirm_password_field\" data-priority=\"\"><label for=\"user_confirm_password\" class=\"ur-label\">Confirm Password <abbr class=\"required\" title=\"required\">*<\/abbr><\/label> <span class=\"input-wrapper\"> <span class=\"password-input-group input-form-field-icons\"><input data-rules=\"\" data-id=\"user_confirm_password\" type=\"password\" class=\"input-text  input-password ur-frontend-field  \" name=\"user_confirm_password\" id=\"user_confirm_password\" placeholder=\"\"  value=\"\" required=\"required\" data-label=\"Confirm Password\" \/><\/span> <\/span> <\/div>\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div  data-field-id=\"check_box_1687196791\" class=\"ur-field-item field-checkbox \" data-ref-id=\"check_box_1687196791\" data-field-pattern-enabled=\"0\" data-field-pattern-value=\" \" data-field-pattern-message=\" \">\n\t\t\t\t\t\t\t\t\t\t<div class=\"form-row \" id=\"check_box_1687196791_field\" data-priority=\"\" ><label class=\"ur-label\" data-label=\"Register for...\">Register for...<\/label><ul ><li class=\"ur-checkbox-list\"><input data-rules=\"\" data-id=\"check_box_1687196791[]\" data-label=\"Register for...\" data-value=\"the Journal (to read articles)\" type=\"checkbox\" class=\"input-checkbox ur-frontend-field  \" name=\"check_box_1687196791[]\" id=\"check_box_1687196791_the Journal (to read articles)\" value=\"the Journal (to read articles)\" \/><label class=\"ur-checkbox-label\" for=\"check_box_1687196791_the Journal (to read articles)\">the Journal (to read articles)<\/label> <\/li><li class=\"ur-checkbox-list\"><input data-rules=\"\" data-id=\"check_box_1687196791[]\" data-label=\"Register for...\" data-value=\"updates on Articles (inform by email)\" type=\"checkbox\" class=\"input-checkbox ur-frontend-field  \" name=\"check_box_1687196791[]\" id=\"check_box_1687196791_updates on Articles (inform by email)\" value=\"updates on Articles (inform by email)\" \/><label class=\"ur-checkbox-label\" for=\"check_box_1687196791_updates on Articles (inform by email)\">updates on Articles (inform by email)<\/label> <\/li><li class=\"ur-checkbox-list\"><input data-rules=\"\" data-id=\"check_box_1687196791[]\" data-label=\"Register for...\" data-value=\"updates on News (inform by email)\" type=\"checkbox\" class=\"input-checkbox ur-frontend-field  \" name=\"check_box_1687196791[]\" id=\"check_box_1687196791_updates on News (inform by email)\" value=\"updates on News (inform by email)\" \/><label class=\"ur-checkbox-label\" for=\"check_box_1687196791_updates on News (inform by email)\">updates on News (inform by email)<\/label> <\/li><\/ul><\/div>\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ur-button-container \" >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"btn button ur-submit-button \"  conditional_rules=\"&quot;&quot;\">\n\t\t\t\t\t\t\t\t<span><\/span>\n\t\t\t\t\t\t\t\tSubmit\t\t\t\t\t\t\t<\/button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\n\t\t\t\t<div style=\"clear:both\"><\/div>\n\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"ur-registration-language\" value=\"\"\/>\n\t\t\t\t<input type=\"hidden\" name=\"ur-user-form-id\" value=\"58\"\/>\n\t\t\t\t<input type=\"hidden\" name=\"ur-redirect-url\" value=\"https:\/\/cmj.uqam.ca\/\"\/>\n\t\t\t\t<input type=\"hidden\" id=\"ur_frontend_form_nonce\" name=\"ur_frontend_form_nonce\" value=\"421b4697fe\" \/>\n\t\t\t\t\n\t\t\t<\/form>\n\t\t\t\n\t\t<div style=\"clear:both\"><\/div>\n\t<\/div>\n\n\r\n<\/div>\r\n<\/td>\r\n<td>\r\n<h3>You can also login and register<\/h3>\r\n<h3>with Telegram<\/h3>\r\n\r\n<div class=\"wptelegram-login-output-wrap container\">\n\t<script async src=\"https:\/\/telegram.org\/js\/telegram-widget.js?1.11.16\" data-telegram-login=\"cambmj_bot\" data-size=\"large\" data-auth-url=\"https:\/\/cmj.uqam.ca?action=wptelegram_login&#038;redirect_to=http%3A%2F%2Fhomepage\" data-request-access=\"write\"  data-radius=\"15\"><\/script><\/div>\n\r\n<h3>(Facebook login in development)<\/h3>\r\n\r\n<div class=\"NOfb-login-button\" data-width=\"\" data-size=\"\" data-button-type=\"\" data-layout=\"\" data-auto-logout-link=\"false\" data-use-continue-as=\"false\"><\/div>\r\n\r\n<div id=\"fb-root\"><\/div>\r\n<script async defer crossorigin=\"anonymous\" src=\"https:\/\/connect.facebook.net\/en_US\/sdk.js#xfbml=1&#038;version=v18.0&#038;appId=3528112424122856\" nonce=\"rqWgwun5\"><\/script>\r\n\r\n\r\n<script>\r\n  \/\/ This is called with the results from FB.getLoginStatus().\r\n  function statusChangeCallback(response) {\r\n    console.log('statusChangeCallback');\r\n    console.log(response);\r\n    \/\/ The response object is returned with a status field that lets the\r\n    \/\/ app know the current login status of the person.\r\n    \/\/ Full docs on the response object can be found in the documentation\r\n    \/\/ for FB.getLoginStatus().\r\n    if (response.status === 'connected') {\r\n      \/\/ Logged into your app and Facebook.\r\n      testAPI();\r\n    } else {\r\n      \/\/ The person is not logged into your app or we are unable to tell.\r\n      document.getElementById('status').innerHTML = 'Please log ' +\r\n        'into this app.';\r\n    }\r\n  }\r\n\r\n  \/\/ This function is called when someone finishes with the Login\r\n  \/\/ Button.  See the onlogin handler attached to it in the sample\r\n  \/\/ code below.\r\n  function checkLoginState() {\r\n    FB.getLoginStatus(function(response) {\r\n      statusChangeCallback(response);\r\n    });\r\n  }\r\n\r\n  window.fbAsyncInit = function() {\r\n  FB.init({\r\n    appId      : '{your-app-id}',\r\n    cookie     : true,  \/\/ enable cookies to allow the server to access \r\n                        \/\/ the session\r\n    xfbml      : true,  \/\/ parse social plugins on this page\r\n    version    : '{api-version}' \/\/ Specify the Graph API version to use\r\n  });\r\n\r\n  \/\/ Now that we've initialized the JavaScript SDK, we call \r\n  \/\/ FB.getLoginStatus().  This function gets the state of the\r\n  \/\/ person visiting this page and can return one of three states to\r\n  \/\/ the callback you provide.  They can be:\r\n  \/\/\r\n  \/\/ 1. Logged into your app ('connected')\r\n  \/\/ 2. Logged into Facebook, but not your app ('not_authorized')\r\n  \/\/ 3. Not logged into Facebook and can't tell if they are logged into\r\n  \/\/    your app or not.\r\n  \/\/\r\n  \/\/ These three cases are handled in the callback function.\r\n\r\n  FB.getLoginStatus(function(response) {\r\n    statusChangeCallback(response);\r\n  });\r\n\r\n  };\r\n\r\n  \/\/ Load the SDK asynchronously\r\n  (function(d, s, id) {\r\n    var js, fjs = d.getElementsByTagName(s)[0];\r\n    if (d.getElementById(id)) return;\r\n    js = d.createElement(s); js.id = id;\r\n    js.src = \"https:\/\/connect.facebook.net\/en_US\/sdk.js\";\r\n    fjs.parentNode.insertBefore(js, fjs);\r\n  }(document, 'script', 'facebook-jssdk'));\r\n\r\n  \/\/ Here we run a very simple test of the Graph API after login is\r\n  \/\/ successful.  See statusChangeCallback() for when this call is made.\r\n  function testAPI() {\r\n    console.log('Welcome!  Fetching your information.... ');\r\n    FB.api('\/me', function(response) {\r\n      console.log('Successful login for: ' + response.name);\r\n      document.getElementById('status').innerHTML =\r\n        'Thanks for logging in, ' + response.name + '!';\r\n    });\r\n  }\r\n<\/script> <!--\r\n  Below we include the Login Button social plugin. This button uses\r\n  the JavaScript SDK to present a graphical Login button that triggers\r\n  the FB.login() function when clicked.\r\n-->\r\n<div id=\"status\">\u00a0<\/div>\r\n<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>","protected":false},"excerpt":{"rendered":"<p>CMJ login and registration Connexion Registration You can also login and register with Telegram (Facebook login in development) \u00a0<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"folder":[],"class_list":["post-142","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/cmj.uqam.ca\/index.php?rest_route=\/wp\/v2\/pages\/142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cmj.uqam.ca\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cmj.uqam.ca\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cmj.uqam.ca\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/cmj.uqam.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=142"}],"version-history":[{"count":33,"href":"https:\/\/cmj.uqam.ca\/index.php?rest_route=\/wp\/v2\/pages\/142\/revisions"}],"predecessor-version":[{"id":270,"href":"https:\/\/cmj.uqam.ca\/index.php?rest_route=\/wp\/v2\/pages\/142\/revisions\/270"}],"wp:attachment":[{"href":"https:\/\/cmj.uqam.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=142"}],"wp:term":[{"taxonomy":"folder","embeddable":true,"href":"https:\/\/cmj.uqam.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ffolder&post=142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}