From 9e4dd302eede8773de0653f123c042bbbf5b5c0c Mon Sep 17 00:00:00 2001 From: William Tam Date: Tue, 1 Oct 2024 10:43:17 -0400 Subject: [PATCH] more vppa assent inline --- templates/activate.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/activate.php b/templates/activate.php index a13671e..d669b4a 100644 --- a/templates/activate.php +++ b/templates/activate.php @@ -58,6 +58,11 @@ $return['errors'] = array('message' => 'You are signed in and your account has already been activated. Your membership status is available here.' . $obs_msg . 'You only need to activate your account the first time you use ' . $station_nice_name . ' Passport.

', '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();