Hi @brmryd,
I don’t expect the missing itsec_lockouts table to be the cause of the issue as reported in this topic.
… earlier in the option 3 you mentioned for this file #351 – am i on right track to try checking the redirect codes in that php file ?
I just pointed to that line of code to confirm a redirection (to the Dashboard) can happen. But if you look at the code below you will see the redirection only happens when a certain condition is met:
350 if ( ! $interstitial->show_to_user( $user, true ) ) {
351 wp_safe_redirect( admin_url() );
352 die;
353 }
That condition normally evaluates to true (tested in my test environment). Only when it evaluates to false the redirect (to the Dashboard) is executed.
So when we look at the code of the show_to_user() class method (lines #33-63) in the core/modules/two-factor/class-itsec-two-factor-on-board.php file, we see there is only 1 possibility to make the earlier mentioned condition fail:
33 public function show_to_user( WP_User $user, $requested ) {
34
35 if ( ! $this->get_available_providers( $user ) ) {
36 return false;
37 }
38
39 if ( $requested ) {
40 return true;
41 }
42
43 …
Since the $requested value is true the second condition will always return true, making the rest of the code in this class method irrelevant.
At this point (get_available_providers() class method) I’ll stop, because code execution goes on many levels deep. Somewhere in this stack something goes wrong.
-
This reply was modified 7 months, 4 weeks ago by
nlpro.