Created
May 19, 2015 15:22
-
-
Save spivurno/a9b0e70d45a46b6315c8 to your computer and use it in GitHub Desktop.
GP Auto Login // Gravity Perks // Bypass Custom Login System
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* GP Auto Login // Gravity Perks // Bypass Custom Login System | |
*/ | |
add_action( 'gpal_pre_auto_login', function() { | |
remove_filter( 'authenticate', array( $GLOBALS['CAS_Maestro'], 'validate_login' ), 30, 3 ); | |
remove_filter( 'login_url', array( $GLOBALS['CAS_Maestro'], 'bypass_reauth' ) ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment