The Free Software Media System - Server Backend & API
Return MethodNotAllowedException if Pw is not set
Joshua Bonifacee790f024c2da
diff --git a/MediaBrowser.Api/UserService.cs b/MediaBrowser.Api/UserService.csindex a6849f75f5..0db62098ca 100644--- a/MediaBrowser.Api/UserService.cs+++ b/MediaBrowser.Api/UserService.cs@@ -379,6 +379,11 @@ namespace MediaBrowser.Apithrow new ResourceNotFoundException("User not found");}+ if (!request.Pw)+ {+ throw new MethodNotAllowedException("Hashed-only passwords are not valid for this API.");+ }+return Post(new AuthenticateUserByName{Username = user.Name,