mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Apply suggestions from code review
more minor fixes before I do larger fixes Co-Authored-By: LogicalPhallacy <44458166+LogicalPhallacy@users.noreply.github.com>
This commit is contained in:
parent
bef665be36
commit
c31b0b311b
@ -96,7 +96,7 @@ namespace Emby.Server.Implementations.Cryptography
|
|||||||
|
|
||||||
public byte[] ComputeHash(string hashMethod, byte[] bytes)
|
public byte[] ComputeHash(string hashMethod, byte[] bytes)
|
||||||
{
|
{
|
||||||
return ComputeHash(hashMethod, bytes, new byte[0]);
|
return ComputeHash(hashMethod, bytes, Array.Empty<byte>());
|
||||||
}
|
}
|
||||||
|
|
||||||
public byte[] ComputeHashWithDefaultMethod(byte[] bytes)
|
public byte[] ComputeHashWithDefaultMethod(byte[] bytes)
|
||||||
|
@ -101,7 +101,7 @@ namespace Emby.Server.Implementations.Library
|
|||||||
if (!user.Password.Contains("$"))
|
if (!user.Password.Contains("$"))
|
||||||
{
|
{
|
||||||
string hash = user.Password;
|
string hash = user.Password;
|
||||||
user.Password = String.Format("$SHA1${0}", hash);
|
user.Password = string.Format("$SHA1${0}", hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (user.EasyPassword != null && !user.EasyPassword.Contains("$"))
|
if (user.EasyPassword != null && !user.EasyPassword.Contains("$"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user