mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 20:08:59 +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
1 changed files with 113 additions and 113 deletions
|
@ -115,7 +115,7 @@ namespace Emby.Server.Implementations.Library
|
||||||
//string newPasswordHash = null;
|
//string newPasswordHash = null;
|
||||||
ConvertPasswordFormat(user);
|
ConvertPasswordFormat(user);
|
||||||
PasswordHash passwordHash = new PasswordHash(user.Password);
|
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.SaltBytes = _cryptographyProvider.GenerateSalt();
|
||||||
passwordHash.Salt = PasswordHash.ConvertToByteString(passwordHash.SaltBytes);
|
passwordHash.Salt = PasswordHash.ConvertToByteString(passwordHash.SaltBytes);
|
||||||
|
|
Loading…
Reference in a new issue