Browse Source

fix(nextcloud): Drop unused username

pull/526/head
jld3103 1 year ago
parent
commit
cb1f82fc6e
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 7
      packages/nextcloud/lib/src/client.dart
  2. 2
      packages/nextcloud/test/helper.dart

7
packages/nextcloud/lib/src/client.dart

@ -17,14 +17,12 @@ class NextcloudClient extends DynamiteClient {
NextcloudClient(
super.baseURL, {
this.loginName,
this.username,
final String? password,
final String? language,
final AppType appType = AppType.unknown,
final String? userAgentOverride,
super.cookieJar,
}) : assert(loginName != null || username == null, 'Provide loginName instead of username or both'),
super(
}) : super(
baseHeaders: (<String, String?>{
'OCS-APIRequest': 'true',
'Accept-Language': language,
@ -44,9 +42,6 @@ class NextcloudClient extends DynamiteClient {
/// Identifier used for authentication. This can be the username or email or something else.
final String? loginName;
/// Username of the user on the server
final String? username;
WebDavClient? _webdav;
CoreClient? _core;
NewsClient? _news;

2
packages/nextcloud/test/helper.dart

@ -76,7 +76,6 @@ class TestNextcloudClient extends NextcloudClient {
TestNextcloudClient(
super.baseURL, {
super.loginName,
super.username,
super.password,
super.language,
super.appType,
@ -126,7 +125,6 @@ Future<TestNextcloudClient> getTestClient(
final client = TestNextcloudClient(
'http://localhost:${container.port}',
loginName: username,
username: username,
password: clientPassword,
appType: appType,
userAgentOverride: userAgentOverride,

Loading…
Cancel
Save