config->getAppKeys('twofactor_nextcloud_notification'); foreach ($keys as $key) { if (str_ends_with($key, '_enabled')) { $this->config->setUserValue( substr($key, 0, -8), 'twofactor_nextcloud_notification', 'enabled', '1' ); $this->config->deleteAppValue('twofactor_nextcloud_notification', $key); } } } }