diff --git a/lib/data/model/server/server_private_info.dart b/lib/data/model/server/server_private_info.dart index 91d11849..a39eff11 100644 --- a/lib/data/model/server/server_private_info.dart +++ b/lib/data/model/server/server_private_info.dart @@ -64,7 +64,7 @@ class ServerPrivateInfo { final port = json["port"] as int? ?? 22; final user = json["user"] as String? ?? 'root'; final name = json["name"] as String? ?? ''; - final pwd = json["authorization"] as String?; + final pwd = json["pwd"] as String? ?? json["authorization"] as String?; final keyId = json["pubKeyId"] as String?; final tags = (json["tags"] as List?)?.cast(); final alterUrl = json["alterUrl"] as String?; @@ -100,7 +100,7 @@ class ServerPrivateInfo { data["port"] = port; data["user"] = user; if (pwd != null) { - data["authorization"] = pwd; + data["pwd"] = pwd; } if (keyId != null) { data["pubKeyId"] = keyId; diff --git a/pubspec.lock b/pubspec.lock index a996e547..8e0cf09a 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -401,8 +401,8 @@ packages: dependency: "direct main" description: path: "." - ref: "v1.0.29" - resolved-ref: "674d5b3fccd1ae29c2739f119e34719874186587" + ref: "v1.0.31" + resolved-ref: f6322c5c2fad5230d1a882e79d52d1a0d246b8f4 url: "https://github.com/lppcg/fl_lib" source: git version: "0.0.1" diff --git a/pubspec.yaml b/pubspec.yaml index 00a04a40..b62e2fc9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -36,24 +36,24 @@ dependencies: extended_image: ^8.2.1 dartssh2: git: - ref: dev url: https://github.com/lollipopkit/dartssh2 + ref: dev circle_chart: git: url: https://github.com/lollipopkit/circle_chart ref: main xterm: git: - ref: master url: https://github.com/lollipopkit/xterm.dart + ref: master computer: git: - ref: master url: https://github.com/lollipopkit/dart_computer + ref: master fl_lib: git: url: https://github.com/lppcg/fl_lib - ref: v1.0.29 + ref: v1.0.31 dependency_overrides: # dartssh2: