Skip to content

Commit

Permalink
vppa assent inline with activation
Browse files Browse the repository at this point in the history
  • Loading branch information
tamw-wnet committed Oct 1, 2024
1 parent 6f5a9f1 commit 9dc4f9d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/oauthcallback.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@
if (isset($mvaultinfo["membership_id"])) {
$mvaultinfo = $mvault_client->activate($membership_id, $pbs_uid);
}
// handle VPPA assent during activation
if (isset($userinfo["vppa_redirect"])) {
// reset the login_referrer again
setcookie( 'pbsoauth_login_referrer', $login_referrer, 0, '/', $_SERVER['HTTP_HOST']);
wp_redirect($userinfo["vppa_redirect"]);
exit();
}
}
// is the person activated now?
if (!isset($mvaultinfo["membership_id"])) {
Expand Down

0 comments on commit 9dc4f9d

Please sign in to comment.