From 40fca849e7f180d5f2bbc44ba9299f20f6531258 Mon Sep 17 00:00:00 2001 From: Ethan Pippin Date: Fri, 19 Aug 2022 21:49:02 -0600 Subject: [PATCH] fix password --- Sources/JellyfinClient.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/JellyfinClient.swift b/Sources/JellyfinClient.swift index f2e81f2ae..706f09222 100644 --- a/Sources/JellyfinClient.swift +++ b/Sources/JellyfinClient.swift @@ -232,7 +232,7 @@ public extension JellyfinClient { /// - Throws: `ClientError.noAccessTokenInResponse` if no access token was supplied in a successful authentication response @discardableResult func signIn(username: String, password: String) async throws -> AuthenticationResult { - let authenticateUserRequest = Paths.authenticateUserByName(.init(password: password, pw: nil, username: username)) + let authenticateUserRequest = Paths.authenticateUserByName(.init(password: nil, pw: password, username: username)) let response = try await send(authenticateUserRequest).value if let accessToken = response.accessToken {