Subsonic API: report error 41 for auth token attempts

This commit is contained in:
emeric
2023-01-07 14:50:30 +01:00
parent e848008ceb
commit b681a20b5a
3 changed files with 19 additions and 0 deletions
@@ -2114,6 +2114,9 @@ SubsonicResource::getClientInfo(const Wt::Http::ParameterMap& parameters)
{
ClientInfo res;
if (hasParameter(parameters, "t"))
throw TokenAuthenticationNotSupportedForLDAPUsersError {};
// Mandatory parameters
res.name = getMandatoryParameterAs<std::string>(parameters, "c");
res.version = getMandatoryParameterAs<ProtocolVersion>(parameters, "v");