Include wp_login action after auth cookie is set

* Many plugins will hook in to this action, it should be at the end of any
  WordPress login flow
* See: https://core.trac.wordpress.org/browser/tags/4.7.3/src/wp-includes/user.php#L104
isekai
Robbie Paul 8 years ago
parent b8ad2dd560
commit 672d7292e2

@ -441,6 +441,7 @@ class OpenID_Connect_Generic_Client_Wrapper {
// you did great, have a cookie!
$this->issue_token_refresh_info_cookie( $user->ID, $token_response );
wp_set_auth_cookie( $user->ID, FALSE );
do_action( 'wp_login', $user->user_login, $user );
}
/**

Loading…
Cancel
Save