Skip to content

Commit

Permalink
fix password
Browse files Browse the repository at this point in the history
  • Loading branch information
LePips committed Aug 20, 2022
1 parent 4ecb2d4 commit 40fca84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/JellyfinClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 40fca84

Please sign in to comment.