浏览代码

Apparently strings can't be !'d

Joshua Boniface 6 年之前
父节点
当前提交
eaa1ac8013
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      MediaBrowser.Api/UserService.cs

+ 1 - 1
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.");
             }