improve scan progress and fix a few bugs

This commit is contained in:
dkanada
2020-02-01 22:44:27 +09:00
parent ab2349ff3c
commit afe9ed977b
6 changed files with 30 additions and 33 deletions

View File

@@ -291,10 +291,11 @@ namespace Emby.Server.Implementations.Library
&& authenticationProvider != null
&& !(authenticationProvider is DefaultAuthenticationProvider))
{
// We should trust the user that the authprovider says, not what was typed
// trust the username returned by the authentication provider
username = updatedUsername;
// Search the database for the user again; the authprovider might have created it
// search the database for the user again
// the authentication provider might have created it
user = Users
.FirstOrDefault(i => string.Equals(username, i.Name, StringComparison.OrdinalIgnoreCase));