Subsonic API: changed return code from 41 to 42 when a token is used

This commit is contained in:
emeric
2025-05-29 21:48:07 +02:00
parent 2b9ff2b2e9
commit 291e7ae60c
+1 -1
View File
@@ -434,7 +434,7 @@ namespace lms::api::subsonic
const auto& parameters{ request.getParameterMap() };
if (hasParameter(parameters, "t"))
throw TokenAuthenticationNotSupportedForLDAPUsersError{};
throw ProvidedAuthenticationMechanismNotSupportedError{};
const auto user{ getParameterAs<std::string>(parameters, "u") };
const auto password{ getParameterAs<std::string>(parameters, "p") };