Skip to content

Commit b037aad

Browse files
authored
Merge pull request #64 from matgargano/master
add back code that was accidentally removed?
2 parents 2a52ca4 + 899e628 commit b037aad

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

onelogin-saml-sso/php/functions.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,8 @@ function saml_acs() {
319319
setcookie(SAML_LOGIN_COOKIE, 1, time() + YEAR_IN_SECONDS, SITECOOKIEPATH );
320320
}
321321

322+
do_action( 'onelogin_saml_attrs', $attrs, wp_get_current_user(), get_current_user_id() );
323+
322324
if (isset($_REQUEST['RelayState'])) {
323325
if (!empty($_REQUEST['RelayState']) && ((substr($_REQUEST['RelayState'], -strlen('/wp-login.php')) === '/wp-login.php') || (substr($_REQUEST['RelayState'], -strlen('/alternative_acs.php')) === '/alternative_acs.php'))) {
324326
wp_redirect(home_url());

0 commit comments

Comments
 (0)