|
@@ -379,6 +379,11 @@ namespace MediaBrowser.Api
|
|
throw new ResourceNotFoundException("User not found");
|
|
throw new ResourceNotFoundException("User not found");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (!request.Pw)
|
|
|
|
+ {
|
|
|
|
+ throw new MethodNotAllowedException("Hashed-only passwords are not valid for this API.");
|
|
|
|
+ }
|
|
|
|
+
|
|
return Post(new AuthenticateUserByName
|
|
return Post(new AuthenticateUserByName
|
|
{
|
|
{
|
|
Username = user.Name,
|
|
Username = user.Name,
|