From dd3a44b2845cc345d0aba5046049c01fbc07aebb Mon Sep 17 00:00:00 2001 From: tidusjar Date: Sat, 6 Mar 2021 23:51:53 +0000 Subject: [PATCH] Fixed #4092 --- src/Ombi/Controllers/V1/IdentityController.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Ombi/Controllers/V1/IdentityController.cs b/src/Ombi/Controllers/V1/IdentityController.cs index dfe13a029..b57a6e890 100644 --- a/src/Ombi/Controllers/V1/IdentityController.cs +++ b/src/Ombi/Controllers/V1/IdentityController.cs @@ -633,11 +633,16 @@ namespace Ombi.Controllers.V1 user.MovieRequestLimit = ui.MovieRequestLimit; user.EpisodeRequestLimit = ui.EpisodeRequestLimit; user.MusicRequestLimit = ui.MusicRequestLimit; + if (ui.Password.HasValue()) + { + user.PasswordHash = UserManager.PasswordHasher.HashPassword(user, ui.Password); + } if (ui.StreamingCountry.HasValue()) { user.StreamingCountry = ui.StreamingCountry; } var updateResult = await UserManager.UpdateAsync(user); + if (!updateResult.Succeeded) { return new OmbiIdentityResult