mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
Fixed #4092
This commit is contained in:
parent
cf07204b73
commit
dd3a44b284
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue