mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Fix EasyPassword setting
This commit is contained in:
parent
68e1ecaaf9
commit
3d87c4c1b6
@ -262,7 +262,7 @@ namespace Jellyfin.Server.Implementations.Users
|
|||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public void ChangeEasyPassword(User user, string newPassword, string newPasswordSha1)
|
public void ChangeEasyPassword(User user, string newPassword, string newPasswordSha1)
|
||||||
{
|
{
|
||||||
GetAuthenticationProvider(user).ChangeEasyPassword(user, newPassword, newPasswordSha1);
|
user.EasyPassword = _cryptoProvider.CreatePasswordHash(newPassword).ToString();
|
||||||
UpdateUser(user);
|
UpdateUser(user);
|
||||||
|
|
||||||
OnUserPasswordChanged?.Invoke(this, new GenericEventArgs<User>(user));
|
OnUserPasswordChanged?.Invoke(this, new GenericEventArgs<User>(user));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user