Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
tamw-wnet committed Sep 18, 2024
1 parent f67c917 commit 2f9be39
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions assets/js/pkce_loginform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion templates/loginform.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 2f9be39

Please sign in to comment.