mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
fix merge
This commit is contained in:
parent
f4d8e0e20c
commit
3169b0af89
@ -5,7 +5,6 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Jellyfin.Data.Entities;
|
using Jellyfin.Data.Entities;
|
||||||
using MediaBrowser.Common;
|
|
||||||
using MediaBrowser.Common.Cryptography;
|
using MediaBrowser.Common.Cryptography;
|
||||||
using MediaBrowser.Controller.Authentication;
|
using MediaBrowser.Controller.Authentication;
|
||||||
using MediaBrowser.Model.Cryptography;
|
using MediaBrowser.Model.Cryptography;
|
||||||
@ -117,32 +116,5 @@ namespace Jellyfin.Server.Implementations.Users
|
|||||||
|
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
public void ChangeEasyPassword(User user, string newPassword, string newPasswordHash)
|
|
||||||
{
|
|
||||||
if (newPassword != null)
|
|
||||||
{
|
|
||||||
newPasswordHash = _cryptographyProvider.CreatePasswordHash(newPassword).ToString();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (string.IsNullOrWhiteSpace(newPasswordHash))
|
|
||||||
{
|
|
||||||
throw new ArgumentNullException(nameof(newPasswordHash));
|
|
||||||
}
|
|
||||||
|
|
||||||
user.EasyPassword = newPasswordHash;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
public string? GetEasyPasswordHash(User user)
|
|
||||||
{
|
|
||||||
return string.IsNullOrEmpty(user.EasyPassword)
|
|
||||||
? null
|
|
||||||
: Hex.Encode(PasswordHash.Parse(user.EasyPassword).Hash);
|
|
||||||
}
|
|
||||||
>>>>>>> upstream/master
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user