mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-26 07:28:43 +02:00
Update Emby.Server.Implementations/Library/DefaultAuthenticationProvider.cs
fix to styling Co-Authored-By: LogicalPhallacy <44458166+LogicalPhallacy@users.noreply.github.com>
This commit is contained in:
parent
77602aff88
commit
9e58e31de0
|
@ -115,7 +115,7 @@ namespace Emby.Server.Implementations.Library
|
|||
//string newPasswordHash = null;
|
||||
ConvertPasswordFormat(user);
|
||||
PasswordHash passwordHash = new PasswordHash(user.Password);
|
||||
if(passwordHash.Id == "SHA1" && string.IsNullOrEmpty(passwordHash.Salt))
|
||||
if (passwordHash.Id == "SHA1" && string.IsNullOrEmpty(passwordHash.Salt))
|
||||
{
|
||||
passwordHash.SaltBytes = _cryptographyProvider.GenerateSalt();
|
||||
passwordHash.Salt = PasswordHash.ConvertToByteString(passwordHash.SaltBytes);
|
||||
|
|
Loading…
Reference in a new issue