storage = $storage; } /** * @inheritDoc */ public function handle( $user, $response = null ) { $user_storage = $this->storage->get_user_storage(); $options_storage = $this->storage->get_options(); if ( $this->is_wp_user( $user ) && $user_storage->is_totp_configured() && ! $user_storage->is_totp_enabled() && $options_storage->has_obligatory_role( $user->roles ) ) { Dispatcher::dispatch( new Totp_Configuration_Removed( $user->ID ) ); } return $this->run_next( $user, $response ); } }