|
|
@ -63,6 +63,9 @@ namespace Jellyfin.Server.Implementations.Users
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Handle the case when the stored password is null, but the user tried to login with a password
|
|
|
|
|
|
|
|
if (resolvedUser.Password != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
byte[] passwordBytes = Encoding.UTF8.GetBytes(password);
|
|
|
|
byte[] passwordBytes = Encoding.UTF8.GetBytes(password);
|
|
|
|
|
|
|
|
|
|
|
|
PasswordHash readyHash = PasswordHash.Parse(resolvedUser.Password);
|
|
|
|
PasswordHash readyHash = PasswordHash.Parse(resolvedUser.Password);
|
|
|
@ -83,6 +86,7 @@ namespace Jellyfin.Server.Implementations.Users
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw new AuthenticationException($"Requested crypto method not available in provider: {readyHash.Id}");
|
|
|
|
throw new AuthenticationException($"Requested crypto method not available in provider: {readyHash.Id}");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!success)
|
|
|
|
if (!success)
|
|
|
|
{
|
|
|
|
{
|
|
|
|