Merge pull request #1305 from bugfixin/passwordless-form-encoded

Fix passwordless authentication with non-json content-types
This commit is contained in:
Joshua M. Boniface 2019-04-29 23:07:04 -04:00 committed by GitHub
commit 4e0be95368
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,7 @@ namespace Emby.Server.Implementations.Services
string propertyName = pair.Key;
string propertyTextValue = pair.Value;
if (string.IsNullOrEmpty(propertyTextValue)
if (propertyTextValue == null
|| !propertySetterMap.TryGetValue(propertyName, out propertySerializerEntry)
|| propertySerializerEntry.PropertySetFn == null)
{