Sfoglia il codice sorgente

Apparently strings can't be !'d

Joshua Boniface 6 anni fa
parent
commit
eaa1ac8013
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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.");
             }