ignore users using alternative auth providers

This commit is contained in:
Harvey Tindall 2020-06-27 15:45:12 +01:00
parent 4809331502
commit db1b707ec1

View File

@ -111,12 +111,20 @@ if (
and bool(data_store.user_template) is not False and bool(data_store.user_template) is not False
): ):
log.info("Updating user_template for Jellyfin >= 10.6.0") log.info("Updating user_template for Jellyfin >= 10.6.0")
data_store.user_template[ if (
"AuthenticationProviderId" data_store.user_template["AuthenticationProviderId"]
] = "Jellyfin.Server.Implementations.Users.DefaultAuthenticationProvider" == "Emby.Server.Implementations.Library.DefaultAuthenticationProvider"
data_store.user_template[ ):
"PasswordResetProviderId" data_store.user_template[
] = "Jellyfin.Server.Implementations.Users.DefaultPasswordResetProvider" "AuthenticationProviderId"
] = "Jellyfin.Server.Implementations.Users.DefaultAuthenticationProvider"
if (
data_store.user_template["PasswordResetProviderId"]
== "Emby.Server.Implementations.Library.DefaultPasswordResetProvider"
):
data_store.user_template[
"PasswordResetProviderId"
] = "Jellyfin.Server.Implementations.Users.DefaultPasswordResetProvider"
if config.getboolean("password_validation", "enabled"): if config.getboolean("password_validation", "enabled"):