Skip to content

Commit

Permalink
WIP hook init
Browse files Browse the repository at this point in the history
  • Loading branch information
ypcs committed Aug 14, 2020
1 parent 1954ec4 commit c61041b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/seravotest-auth-bypass.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ public static function load() {
// Restrict Content Pro has it's own processing for login forms,
// and it doesn't run login_init. This prevents auth bypass from working.
// So, let's add override for this plugin.
add_action('rcp_login_form_errors', array( __CLASS__, 'attempt_login' ), 10, 2);
//add_action('rcp_login_form_errors', array( __CLASS__, 'attempt_login' ), 10, 2);
// RCP hooks to init with priority 10, so now we catch request before RCP, and we're
// able to do our magic
add_action('init', array( __CLASS__, 'attempt_login' ), 9, 2);
}

}
Expand Down

0 comments on commit c61041b

Please sign in to comment.