diff --git a/assets/js/pkce_loginform.js b/assets/js/pkce_loginform.js index 91ee1e1..b0c1452 100644 --- a/assets/js/pkce_loginform.js +++ b/assets/js/pkce_loginform.js @@ -35,6 +35,7 @@ jQuery(document).ready(function($) { // if pmsso exists, just add the pkce code challenge etc and redirect them $(".passport-login-wrap li.pmsso a").each(async function() { + document.cookie='pbsoauth_rememberme=true;domain=' + window.location.hostname + ';path=/'; var code_verifier = generateRandomString(); document.cookie='pkce_code_verifier=' + code_verifier + ';domain=' + window.location.hostname + ';path=/'; var code_challenge = await pkceChallengeFromVerifier(code_verifier); diff --git a/templates/loginform.php b/templates/loginform.php index 200950b..b6e0ba5 100644 --- a/templates/loginform.php +++ b/templates/loginform.php @@ -3,7 +3,6 @@ $passport = new PBS_Passport_Authenticate(dirname(__FILE__)); $use_pmsso = isset($defaults['pmsso_is_default']) ? $defaults['pmsso_is_default'] : false; -wp_enqueue_script( 'pbs_passport_loginform_js' , $passport->assets_url . 'js/loginform_helpers.js', array('jquery'), $passport->version, true ); $links = $passport->get_oauth_links(array('scope' => 'account vppa')); $pluginImageDir = $passport->assets_url . 'img';