Skip to content

Commit

Permalink
fix: 馃┕ Fixed error which occured when using LDAP
Browse files Browse the repository at this point in the history
  • Loading branch information
JamsRepos committed Apr 26, 2024
1 parent 724755e commit 1ba2e0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion apps/wizarr-backend/wizarr_backend/helpers/emby.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,10 @@ def invite_emby_user(username: str, password: str, code: str, server_api_key: Op
post_emby(api_path=f"/Users/{user_response['Id']}/Password", json={"NewPw": str(password)}, server_api_key=server_api_key, server_url=server_url)

# Create policy object
new_policy = { "EnableAllFolders": True }
new_policy = {
"EnableAllFolders": True,
"AuthenticationProviderId": "Emby.Server.Implementations.Library.DefaultAuthenticationProvider",
}

# Set library options
if sections:
Expand Down
5 changes: 4 additions & 1 deletion apps/wizarr-backend/wizarr_backend/helpers/jellyfin.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,10 @@ def invite_jellyfin_user(username: str, password: str, code: str, server_api_key
user_response = post_jellyfin(api_path="/Users/New", json=new_user, server_api_key=server_api_key, server_url=server_url)

# Create policy object
new_policy = {"EnableAllFolders": True}
new_policy = {
"EnableAllFolders": True,
"AuthenticationProviderId": "Jellyfin.Server.Implementations.Users.DefaultAuthenticationProvider",
}

# Set library options
if sections:
Expand Down

0 comments on commit 1ba2e0a

Please sign in to comment.