user_storage = $user_storage; $this->step_token = $step_token; } /** * @param WP_Error|WP_User $user * @param JSON_Response|View_Response|null $response * * @return JSON_Response|View_Response|Redirect_Response|null */ public function handle( $user, $response = null ) { if ( $this->is_wp_user( $user ) && $this->user_storage->is_user_blocked() ) { $this->step_token->reset(); return $this->json_error( Notification::get( 'authentication-limit' ), 403 ); } return $this->run_next( $user, $response ); } }