Skip to content

The Free Software Media System - Server Backend & API

Update conditional to be correct

Joshua Boniface10f33b027345
diff --git a/MediaBrowser.Api/UserService.cs b/MediaBrowser.Api/UserService.cs
index 119c423e60..7628a2f0fa 100644
--- a/MediaBrowser.Api/UserService.cs
+++ b/MediaBrowser.Api/UserService.cs
@@ -379,7 +379,7 @@ namespace MediaBrowser.Api
throw new ResourceNotFoundException("User not found");
}
- if (request.Pw == "")
+ if (!string.IsNullOrEmpty(request.Password) || string.IsNullOrEmpty(request.Pw))
{
throw new MethodNotAllowedException("Hashed-only passwords are not valid for this API.");
}