Apparently strings can't be !'d

This commit is contained in:
Joshua Boniface 2019-04-17 22:49:17 -04:00
parent ca3bb308b3
commit eaa1ac8013

View file

@ -379,7 +379,7 @@ namespace MediaBrowser.Api
throw new ResourceNotFoundException("User not found"); throw new ResourceNotFoundException("User not found");
} }
if (!request.Pw) if (request.Pw == "")
{ {
throw new MethodNotAllowedException("Hashed-only passwords are not valid for this API."); throw new MethodNotAllowedException("Hashed-only passwords are not valid for this API.");
} }