[pve-devel] [PATCH proxmox-login-manager 2/2] general settings: add trustedFingerprints list
Dominik Csapak
d.csapak at proxmox.com
Mon Apr 15 12:30:22 CEST 2024
where we can save the fingerprints the user wants to trust
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
lib/proxmox_general_settings_model.dart | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/proxmox_general_settings_model.dart b/lib/proxmox_general_settings_model.dart
index 767bdaf..4c8305b 100644
--- a/lib/proxmox_general_settings_model.dart
+++ b/lib/proxmox_general_settings_model.dart
@@ -1,5 +1,6 @@
import 'dart:convert';
+import 'package:built_collection/built_collection.dart';
import 'package:built_value/built_value.dart';
import 'package:built_value/serializer.dart';
import 'package:proxmox_login_manager/serializers.dart';
@@ -11,6 +12,7 @@ abstract class ProxmoxGeneralSettingsModel
implements
Built<ProxmoxGeneralSettingsModel, ProxmoxGeneralSettingsModelBuilder> {
bool? get sslValidation;
+ BuiltList<String>? get trustedFingerprints;
ProxmoxGeneralSettingsModel._();
factory ProxmoxGeneralSettingsModel(
@@ -18,7 +20,9 @@ abstract class ProxmoxGeneralSettingsModel
_$ProxmoxGeneralSettingsModel;
factory ProxmoxGeneralSettingsModel.defaultValues() =>
- ProxmoxGeneralSettingsModel((b) => b..sslValidation = true);
+ ProxmoxGeneralSettingsModel((b) => b
+ ..sslValidation = true
+ ..trustedFingerprints = ListBuilder());
Object toJson() {
return serializers.serializeWith(
--
2.39.2
More information about the pve-devel
mailing list