Skip to content

Commit

Permalink
Fixed #4092
Browse files Browse the repository at this point in the history
  • Loading branch information
tidusjar committed Mar 6, 2021
1 parent cf07204 commit dd3a44b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Ombi/Controllers/V1/IdentityController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -633,11 +633,16 @@ public async Task<OmbiIdentityResult> UpdateUser([FromBody] UserViewModel ui)
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
Expand Down

0 comments on commit dd3a44b

Please sign in to comment.