Minor improvements

This commit is contained in:
Bond_009
2020-09-16 14:16:44 +02:00
parent 6bf0acb854
commit 2dbf73b989
7 changed files with 41 additions and 48 deletions

View File

@@ -1017,9 +1017,9 @@ namespace Jellyfin.Api.Controllers
[FromQuery] bool validateListings = false,
[FromQuery] bool validateLogin = false)
{
using var sha = SHA1.Create();
if (!string.IsNullOrEmpty(pw))
{
using var sha = SHA1.Create();
listingsProviderInfo.Password = Hex.Encode(sha.ComputeHash(Encoding.UTF8.GetBytes(pw)));
}