user_storage = $user_storage; $this->login_token_manager = $login_token_manager; } /** * @inheritDoc */ public function handle( $user, $response = null ) { if ( $this->user_storage->is_wp_user_set() && $this->user_storage->is_user_blocked() ) { $this->login_token_manager->reset(); return $this->json_error( Notification::get( 'authentication-limit' ), Code::FORBIDDEN ); } return $this->run_next( $user, $response ); } }