mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-04 14:14:29 -04:00
update some comments
Co-Authored-By: Bond-009 <bond.009@outlook.com>
This commit is contained in:
parent
7df6f8d54e
commit
692a9bfdd0
@ -1077,7 +1077,7 @@ namespace Emby.Server.Implementations.Library
|
|||||||
|
|
||||||
innerProgress.RegisterAction(pct => progress.Report(pct * pct * 0.96));
|
innerProgress.RegisterAction(pct => progress.Report(pct * pct * 0.96));
|
||||||
|
|
||||||
// validate the entire media library
|
// Validate the entire media library
|
||||||
await RootFolder.ValidateChildren(innerProgress, cancellationToken, new MetadataRefreshOptions(new DirectoryService(_fileSystem)), recursive: true).ConfigureAwait(false);
|
await RootFolder.ValidateChildren(innerProgress, cancellationToken, new MetadataRefreshOptions(new DirectoryService(_fileSystem)), recursive: true).ConfigureAwait(false);
|
||||||
|
|
||||||
progress.Report(96);
|
progress.Report(96);
|
||||||
|
@ -291,10 +291,10 @@ namespace Emby.Server.Implementations.Library
|
|||||||
&& authenticationProvider != null
|
&& authenticationProvider != null
|
||||||
&& !(authenticationProvider is DefaultAuthenticationProvider))
|
&& !(authenticationProvider is DefaultAuthenticationProvider))
|
||||||
{
|
{
|
||||||
// trust the username returned by the authentication provider
|
// Trust the username returned by the authentication provider
|
||||||
username = updatedUsername;
|
username = updatedUsername;
|
||||||
|
|
||||||
// search the database for the user again
|
// Search the database for the user again
|
||||||
// the authentication provider might have created it
|
// the authentication provider might have created it
|
||||||
user = Users
|
user = Users
|
||||||
.FirstOrDefault(i => string.Equals(username, i.Name, StringComparison.OrdinalIgnoreCase));
|
.FirstOrDefault(i => string.Equals(username, i.Name, StringComparison.OrdinalIgnoreCase));
|
||||||
|
@ -394,7 +394,7 @@ namespace MediaBrowser.Api
|
|||||||
throw new MethodNotAllowedException("Hashed-only passwords are not valid for this API.");
|
throw new MethodNotAllowedException("Hashed-only passwords are not valid for this API.");
|
||||||
}
|
}
|
||||||
|
|
||||||
// password should always be null
|
// Password should always be null
|
||||||
return Post(new AuthenticateUserByName
|
return Post(new AuthenticateUserByName
|
||||||
{
|
{
|
||||||
Username = user.Name,
|
Username = user.Name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user