Changeset 2135
- Timestamp:
- 11/26/2015 04:24:27 PM (8 years ago)
- Location:
- sites/trunk/common/includes/wporg-sso
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/wporg-sso/bb-plugin.php
r2098 r2135 36 36 } 37 37 } else if ( preg_match( '/\/bb-login\.php$/', $this->script ) ) { 38 if ( ! empty( $_POST ) ) { 39 // Let users log in from the header's form, for now. 40 return; 41 } else if ( 'logout' == $_GET['action'] ) { 42 // Let users log out without a trip to the SSO host. 43 return; 44 } 45 38 46 $redirect_to_sso_login = $this->sso_login_url; 39 40 // Pass thru the requested action, logged out, if any47 48 // Pass thru the requested action, logged out, if any 41 49 if ( ! empty( $_GET ) ) { 42 50 $redirect_to_sso_login = add_query_arg( $_GET, $redirect_to_sso_login ); -
sites/trunk/common/includes/wporg-sso/wp-plugin.php
r2098 r2135 25 25 26 26 * @example add_action( 'init', array( &$wporg_sso, 'redirect_all_wp_login_or_signup_to_sso' ) ); 27 * 28 * @note Also handles accesses to lost password forms, since wp-login too. 27 29 */ 28 30 public function redirect_all_login_or_signup_to_sso() {
Note: See TracChangeset
for help on using the changeset viewer.