aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Boniface <joshua@boniface.me>2019-04-18 09:31:30 -0400
committerJoshua Boniface <joshua@boniface.me>2019-04-18 09:31:30 -0400
commit10f33b027345193f91b91600473222797ae9bef5 (patch)
tree00820a1b0eda2a6503bb297bd8b70a69c52a0a53
parenteaa1ac80133e766a1d3ab4e0f5a07bc48619cd44 (diff)
Update conditional to be correct
-rw-r--r--MediaBrowser.Api/UserService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Api/UserService.cs b/MediaBrowser.Api/UserService.cs
index 119c423e6..7628a2f0f 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.");
}