Skip to content

Commit

Permalink
more vppa assent inline
Browse files Browse the repository at this point in the history
  • Loading branch information
tamw-wnet committed Oct 1, 2024
1 parent 9dc4f9d commit 9e4dd30
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/activate.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@
$return['errors'] = array('message' => 'You are signed in and your account has already been activated. <a href="' . site_url('pbsoauth/userinfo') . '">Your membership status is available here</a>.' . $obs_msg . 'You only need to activate your account the first time you use ' . $station_nice_name . ' Passport.<br /><br />', 'class' => 'info');
} else {
$mvaultinfo = $mvault_client->activate($mvaultinfo['membership_id'], $pbs_uid);
// handle vppa_assent inline for pmsso
if (isset($userinfo["vppa_redirect"])) {
wp_redirect($userinfo["vppa_redirect"]);
exit();
}
$userinfo["membership_info"] = $mvaultinfo;
$success = $auth_client->validate_and_append_userinfo($userinfo);
$login_referrer = site_url();
Expand Down

0 comments on commit 9e4dd30

Please sign in to comment.