Add nicer log message and comment

pull/1447/head
Joshua M. Boniface 6 years ago
parent d78a55adb4
commit 74ef389879

@ -407,9 +407,8 @@ namespace Emby.Server.Implementations.Library
if (providers.Length == 0) if (providers.Length == 0)
{ {
// this function used to assign any user without an auth provider to the default. // Assign the user to the InvalidAuthProvider since no configured auth provider was valid/found
// we're going to have it use a new function now. _logger.LogWarning("User {0} was found with invalid/missing Authentication Provider {1}. Assigning user to InvalidAuthProvider until this is corrected", user.Name, user.Policy.AuthenticationProviderId);
_logger.LogWarning($"The user {user.Name} was found but no Authentication Provider with ID: {user.Policy.AuthenticationProviderId} was found. Assigning user to InvalidAuthProvider temporarily");
providers = new IAuthenticationProvider[] { _invalidAuthProvider }; providers = new IAuthenticationProvider[] { _invalidAuthProvider };
} }

Loading…
Cancel
Save