Update conditional to be correct

This commit is contained in:
Joshua Boniface 2019-04-18 09:31:30 -04:00
parent eaa1ac8013
commit 10f33b0273

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 (!string.IsNullOrEmpty(request.Password) || string.IsNullOrEmpty(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.");
} }