aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/UserService.cs
diff options
context:
space:
mode:
authorJoshua Boniface <joshua@boniface.me>2019-04-17 22:49:17 -0400
committerJoshua Boniface <joshua@boniface.me>2019-04-17 22:49:17 -0400
commiteaa1ac80133e766a1d3ab4e0f5a07bc48619cd44 (patch)
tree9f26a5e39475f3d2fb30747d4d3550dacf3eb611 /MediaBrowser.Api/UserService.cs
parentca3bb308b3b20327ee96ea914cdaf02fa51374cd (diff)
Apparently strings can't be !'d
Diffstat (limited to 'MediaBrowser.Api/UserService.cs')
-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 0db62098c..119c423e6 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 (request.Pw == "")
{
throw new MethodNotAllowedException("Hashed-only passwords are not valid for this API.");
}